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 - TJHeuvel

Pages: [1]
1
The problem is the `spacing X` property of an UILabel.

2
https://streamable.com/wh3tg
https://streamable.com/azrbz

Diving into `PrintCaretAndSelection` i've found our issue, the `finalSpacingX` value breaks things for us.

3
https://streamable.com/feup5

See GIF, the more we type the more the carrot is incorrect. It goes too much to the right.

We just upgraded our project to the latest version 3.7.8, it seems like the geometry is just generated wrong.

4
NGUI 3 Support / Anchoring on a view with variable items
« on: March 22, 2017, 04:10:42 AM »
Hi,

I'd like to have my background sprite always encapsulate the contents of a window, but i'm not sure how. The window has a few buttons, the amount changes from time to time. So i tried using the Table and Grid components, and while those did sort them correctly i couldnt anchor a background element to the bottom of them.

How can you anchor to a container that grows?

Thanks in advance

5
NGUI 3 Support / Re: Anchors not working after loading another scene
« on: June 21, 2016, 03:00:42 AM »
I've found out a little more, its due to the camera's. When i move the old camera to the position of the new camera and then disable all components it everything works fine. When i destroy the new camera it pops back to the incorrect position.

https://gfycat.com/CheerySlushyHerring

*Edit: Found the cause, after destroying our camera some elements dont update their `anchorCamera` reference in UIRect. I've fixed this by destroying the old camera, finding all UIRects and calling UpdateAnchor.  :-\

6
NGUI 3 Support / Re: Anchors not working after loading another scene
« on: June 20, 2016, 11:13:17 AM »
Just to clear a few things up, this is a normal scene: https://gfycat.com/UnrealisticSorrowfulAntelope
When i load it through our loading procedure its like this: https://gfycat.com/IdenticalOffbeatEthiopianwolf

Our loading routine goes like this: In the mainmenu load is called, spawn a new gameobject with a UIRoot that doesnt get killed on scene load. Load LevelLoader scene, that in turn loads the actual scene. When the loading of the scene is done destroy the loading screen UIRoot et all. I've tried to updatescale a frame after destroying the loading uiroot, to no avail. It seems like the width/height of the panel the elements are anchored to isnt updated.

7
NGUI 3 Support / Anchors not working after loading another scene
« on: June 20, 2016, 08:57:21 AM »
I have a setup where the UI looks good in the regular game scene, but when i load it through the main menu the anchors are all messed up. We have a fairly complex loading mechanic that first goes through a separate loading scene with a specific UIRoot. After this the regular scene is loaded, with another UIRoot, but everything under this and their panels are placed incorrectly. The loading screen's UIRoot is destroyed after the scene is loaded.

I've tried to call `UpdateScale` on the offending root to no avail.

Pages: [1]