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.


Topics - Vicas

Pages: [1]
1
NGUI 3 Support / NGUI Fonts randomly disappear when deactivating others
« on: December 18, 2014, 08:04:35 AM »
I have a weird phenomenon where, by deactivating one GameObject containing an NGUI Label, other Labels disappear.

I have ensured that all labels have their own unique depth, but that does not solve the problem.

If you look at this example:

.. this has two labels. One for "BANK 3" and one for the number.

When I deactivate the number and replace it with a red cross (not an NGUI label, just an image) the top label disappears:


This also happens when I activate other labels, not just when deactivating. What am I missing here?

Thanks in advance

2
Hello.

I am having trouble understanding the basics of Unity and draw call knowledge. At first I basically made one UIPanel every time I put a new UILabel some where. Then I saw in the Profiler that this caused one draw call per UILabel. Stupid I thought, and then went on to batch most of my UILabels into the same UIPanel as I would imagine was really as intended.

That worked fine and I got my ~117 draw calls from UIPanel down to ~10. But now all my UIPanels are doing the 117 draw calls from UIRect.Update()! Is this working as intended?



Is there a way to batch this like I did UIPanel?

Regards,

3
NGUI 3 Support / Spawning UILabels into one global UIPanel?
« on: August 12, 2014, 07:29:09 AM »
I have a game that upon load spawns a whole range of PreFabs that all holds different UILabels.

Right now, each of these have their own UILabel, since this is added automatically by NGUI, when I add a UILabel to a simple GameObject that is going to become a PreFab to be used.

So how do I work with small simple GameObjects that only needs a UILabel, without a UIPanel being created? And is it possible at all?

If you look at this screenshot:
http://grab.by/zo5Q

"CatapultGameStone" is being spawned about 40 times inside "CatapultGameScene" in an array of "stones" that each contains a value using UILabel. This causes 40 draw calls!

So I just want to add one UIPanel to "CatapultGameScene" and spawn only UILabels on the "CatapultGameStone".

How do I do that?

4
Hi.

I am trying to juxtapose two left-bound anchors next to each other instead of having them on top. The reason is that the content of the leftmost of the two is dynamic, so the width is not always the same.

The issue is a credit-counter, with the word "credits" next to it.

Label: '1000' - 'Credits'
Label: '0' - 'Credits'

I would like the 'Credits' to always be the same amount of pixels next to the number.

With regards,
Vicas

Pages: [1]