Playmaker Forum

Playmaker Help & Tips => Playmaker Help => Topic started by: phannDOTde on November 20, 2013, 08:18:54 PM

Title: Switching a 2D Sprites Texture[SOLVED]
Post by: phannDOTde on November 20, 2013, 08:18:54 PM
Hey there,

is there any way to switch a 2D Sprites Texture in Unity 4.3 at the moment (or comming up soon)?

Greets
Peter
Title: Re: Switching a 2D Sprites Texture
Post by: jeanfabre on November 20, 2013, 09:39:15 PM
Hi,

 Yes, totally, you simply set a different sprite in the SpriteRenderer Component, that's all there is to it.

 You can do that in unity by using "Set Property" action ( drag the spriteRenderer onto the state action stack and select "set property", locate the "sprite/sprite" property and select the sprite asset you want to switch to.


bye,

 Jean
Title: Re: Switching a 2D Sprites Texture
Post by: phannDOTde on November 22, 2013, 10:55:28 PM
Thanks alot! I just where always drag&dropping the object from the Hierachyview, didnt know i couldt get/set single components of an object, awsome :-)