Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Tricky_Widget on February 03, 2015, 09:07:37 PM

Title: How do I set the opacity of a 2D sprite? [Solved]
Post by: Tricky_Widget on February 03, 2015, 09:07:37 PM
I have a 2D project and I need to set the opacity of a sprite.  I've looked and looked, but everything I can find only seems to apply to 3D objects.  Does anyone know how to do this with 2D sprites?

Thanks!
Title: Re: How do I set the opacity of a 2D sprite?
Post by: blackant on February 04, 2015, 03:51:55 AM
yes, it's simple,

drag and drop your sprite into your action panel to get set property of this object
and then use color > a for alpha modifications

you may also use material >  color > a

or shared material if you need this applied to all instances of the object
Title: Re: How do I set the opacity of a 2D sprite?
Post by: Tricky_Widget on February 07, 2015, 09:26:34 AM
drag and drop your sprite into your action panel to get set property of this object and then use color > a for alpha modifications

Thank you for the reply!  Unfortunately, I'm not following you.  I can drag the sprite in and insert the get or set properties actions, but I don't see any properties having to do with color.  Attached are what I do see.

Could you elaborate?  Thanks!
Title: Re: How do I set the opacity of a 2D sprite?
Post by: Tricky_Widget on February 07, 2015, 11:37:41 AM
Ah ha!  It's not the sprite I need to get the properties of, but the SpriteRenderer component of the sprite.  That has the Color > A which does indeed change the opacity.

Thank you very much!