Playmaker Forum

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

Title: Switching a 2D Sprites Texture[SOLVED]
Post by: phannDOTde on November 20, 2013, 10: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, 11: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 23, 2013, 12:55:28 AM
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 :-)