2D Toolkit Forum

2D Toolkit => Support => Topic started by: lenix on July 31, 2012, 12:18:48 pm

Title: tk2dCamera can't see GUITexture?
Post by: lenix on July 31, 2012, 12:18:48 pm
Hello,
I'm trying to add GUITextures to my scene but when I run the scene I can't see them, they disappear, even in the designer before running, if I change their original position they disappear.
Anybody knows whats the deal with this?

Thanks,
Title: Re: tk2dCamera can't see GUITexture?
Post by: unikronsoftware on July 31, 2012, 12:37:18 pm
Do you have a GUILayer component on the tk2dCamera? You will need one of those for the GUITexture to draw.
Title: Re: tk2dCamera can't see GUITexture?
Post by: lenix on July 31, 2012, 12:54:32 pm
Thanks a lot unikron, adding a GUILayer component to the camera worked.