Hello Guest

Author Topic: Setting color from inspector  (Read 4719 times)

Jeremy

  • 2D Toolkit
  • Newbie
  • *
  • Posts: 5
    • View Profile
Setting color from inspector
« on: March 28, 2013, 01:49:58 am »
Hi,

I am really loving your toolkit more and more; it makes things that once would have been very difficult to do with some of the free sprite management tools very easy =0

Why won't this (psuedo) code directly set the color I choose from the inspector?  It sets the object to completely transparent (invisible):

...
public Color inspectorColor;
tk2dSprite coloredSprite;

void Start () {
coloredSprite.color = inspectorColor;
}
...

Thanks!  Not sure what I'm doing wrong with something so simple =(


unikronsoftware

  • Administrator
  • Hero Member
  • *****
  • Posts: 9709
    • View Profile
Re: Setting color from inspector
« Reply #1 on: March 28, 2013, 09:29:08 am »
What is the alpha value on the inspectorColor?