2D Toolkit Forum

2D Toolkit => Support => Topic started by: Jeremy on March 28, 2013, 01:49:58 am

Title: Setting color from inspector
Post by: Jeremy 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 =(

Title: Re: Setting color from inspector
Post by: unikronsoftware on March 28, 2013, 09:29:08 am
What is the alpha value on the inspectorColor?