Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Astrydax

Pages: [1]
1
As an example scenario, say I have a prefab called newLoot with a UILabel component.

After Calling NGUITools.AddChild(treasureChest, newLoot);

How would I set the newLoot.UILabel.text for only that instance of the object?

I'm kind of an amateur programmer and might be going about this the wrong way entirely.

EDIT: I suppose what I'm asking is, how can I make a custom gameobject constructor that works with NGUITools.AddChild

I read this post from Unity Answers http://answers.unity3d.com/questions/563786/class-constructor-on-instantiated-objects.html
But I imagine this only works when using Instantiate()

2
NGUI 3 Support / NGUI depth issue
« on: July 03, 2016, 08:22:14 PM »
I have a popup window that i would like to appear on top of everything else in the scene. However, gameobjects within a scroll view grid are appearing on top of it. I'm not sure how to go about fixing this issue. Please view the following gif to understand the issue.

please view the gif of the issue below.
http://giphy.com/gifs/l41Ypx7Jr9p6MjHAQ

even when setting a depth of 100 for the popup window, the cards card tiles still appear above the window.

Pages: [1]