playMaker

Author Topic: How do I set the opacity of a 2D sprite? [Solved]  (Read 3194 times)

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
How do I set the opacity of a 2D sprite? [Solved]
« 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!
« Last Edit: February 22, 2015, 09:11:18 AM by Tricky_Widget »

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: How do I set the opacity of a 2D sprite?
« Reply #1 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

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
Re: How do I set the opacity of a 2D sprite?
« Reply #2 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!

Tricky_Widget

  • Junior Playmaker
  • **
  • Posts: 62
Re: How do I set the opacity of a 2D sprite?
« Reply #3 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!