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

Pages: [1]
1
NGUI 3 Support / How do I center a UIGrid?
« on: November 05, 2014, 07:25:19 AM »
Previously I have been using scroll views / clipping panels to center grids, but because of another problem I can't use that any more.
The issue I'm having is Grids don't center when I select the pivot to be the center  - it is offset by 1/3 to the left.

2
NGUI 3 Support / Re: Null ref exception in UI panel when using NGUI Texture
« on: November 03, 2014, 06:05:58 AM »
I'm not using that shader. That was just the quickest thing I came up to repro outside of my main project.

How can I tell which shaders have a culling version and which don't?
As a work around I have switched off culling in UIPanel. Thanks for the info.


3
On latest now. New line no's below. I can also get this to happen when selecting shaders in the editor. I can do this in a new scene with only a texture in it and selecting shader: Particles/Blended

  1. NullReferenceException
  2. UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/ShaderBindings.cs:149)
  3. UIDrawCall.CreateMaterial () (at Assets/NGUI/Scripts/Internal/UIDrawCall.cs:329)
  4. ...
  5. UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1181)

4
NGUI 3 Support / Null ref exception in UI panel when using NGUI Texture
« on: October 29, 2014, 06:15:41 AM »
I'm currently getting a null ref exception in UI panel when I use NGUI textures on a an item.
I'm instantiating a bunch of objects that contain a couple of labels and sprites + the ngui textures. They are being instantiated in a UIGrid.
The editor spams the below command stack a few times and then does not render my objects.
I don't know what I'm doing to kill NGUI in this circumstance as I have used the same prefabs in other UI's

  1. NullReferenceException
  2. UnityEngine.Material..ctor (UnityEngine.Shader shader) (at C:/BuildAgent/work/d63dfc6385190b60/artifacts/EditorGenerated/ShaderBindings.cs:149)
  3. ...
  4. UIPanel.LateUpdate () (at Assets/NGUI/Scripts/UI/UIPanel.cs:1170)

5
NGUI 3 Support / Re: UI root is becomming 0x0 in size
« on: October 09, 2014, 04:20:37 AM »
Which script are you saying to recompile UIRoot?

6
NGUI 3 Support / Re: UI root is becomming 0x0 in size
« on: October 08, 2014, 03:46:51 PM »
Ok so what is actually going on is anything that is attempting to Anchor to the UI root gets the wrong values. The left right top and bottom goes off to the wrong scale. The scale is off by 1000x's or so.

A simple work around is to anchor everything to the centre, but this looses the ability to scale things properly.
The more complicated work around is to have an invisible Unity gui exture at the edge of the screen and convert it's co-ordinates to the NGUI co-ordinates and set one of your widgets width and height to correspond.


7
NGUI 3 Support / UI root is becomming 0x0 in size
« on: September 27, 2014, 11:51:45 AM »
I've recently fixed a few textures and replaced some UI textures and now I'm getting an issue where on a couple of my screens the UIRoot is becoming 0x0 - making all the anchoring go wrong.
It only happens when I load from one scene to another. I'm about to go and test a few things to see what is causing it but I'm just checking here in-case anyone knows what causes that off the top of their head.

8
NGUI 3 Support / Snap UILabel to the top of ScrollView
« on: May 30, 2014, 10:34:36 AM »
How do I snap a widget or a UILabel to the top of a ScrollView?
Effectively I want to do what RestrictWithinBounds does, but that causes an error when I call it.

9
NGUI 3 Support / Re: Issue with Android UI disappearing
« on: February 26, 2014, 06:15:31 AM »
It was indeed the Multi-thread rendering. Thanks for the responses folks.

10
NGUI 3 Support / Issue with Android UI disappearing
« on: February 25, 2014, 05:42:16 AM »
I currently have an issue on Android where the UI occasionally disappears or gets stretched across the screen. This occurs while I am using the interface (e.g. I'm holding down one of the buttons and the whole UI disappears for a moment) It seems that the functionality remains even if the UI is stretched or not visible. In other cases, buttons have no text but then the text appears after I start interacting with them.

Has anyone else experienced this issue? And / or does anyone know a way to fix this issue?

Pages: [1]