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

Pages: [1]
1
NGUI 3 Support / Re: Sprite run code after entering container?
« on: January 04, 2016, 12:35:25 PM »
I'll add that I think what I'm looking for is a possible function that is called on a UI sprite when it enters a new container or grid.

2
NGUI 3 Support / Re: Position child objects at runtime
« on: January 04, 2016, 10:38:12 AM »
Thanks that's worked!  :)

I used GetComponent<UIGrid>().Reposition(); on a script placed on my Grid.

3
NGUI 3 Support / Sprite run code after entering container?
« on: January 03, 2016, 05:53:05 PM »
Is there way I can have a sprite know that it's been dragged successfully into a new container and, based on the container, run a function.
 

4
NGUI 3 Support / Re: Position child objects at runtime
« on: January 03, 2016, 05:50:17 PM »
So would I add that line in a script placed on my grid object and run it every time I spawn a new child?

5
NGUI 3 Support / Position child objects at runtime
« on: January 02, 2016, 12:13:34 PM »
Hi,

I'm using NGUI.AddChild on a Grid to add items into a scroll view. But because at Runtime the Grid component disables itself they don't position nicely and stack on top of each other. When I tick the Grid component back on at runtime it repositions everything nicely before turning itself off again. How can I have it reposition things at runtime?

Thanks,
Jack

6
NGUI 3 Support / Re: Blue handles not showing
« on: January 02, 2016, 12:11:01 PM »
Wait never mind It's going fine now!

7
NGUI 3 Support / Re: Blue handles not showing
« on: January 02, 2016, 09:19:49 AM »
Ah yes thanks!

Also, I've just noticed when I drag one of the prefab NGUIs from the prefab toolbar ( the BG one for example ) the sprites are really far away from the camera that comes with them. I'm using "The Dialogue System" which I think might be causing this I'm not sure cause the camera goes straight to the bottom left point of the dialogue systems GUI plane in my scene.

EDIT: Actually the place where the camera goes is (0,0,0) in the scene. So nothing to do with the Dialogue system. But the sprites still end up ages away when I drag them into the scene.

8
NGUI 3 Support / Blue handles not showing
« on: January 02, 2016, 09:08:00 AM »
Hi,

I'm using Unity 5.3 and can't see the blue handles used to size sprites. I think I had this problem before with an easy fix but can't recall it.

Thanks,
Jack

9
NGUI 3 Support / Re: How to use progress bars?
« on: January 01, 2015, 09:41:14 PM »
Cheers

10
NGUI 3 Support / Everything just went blurry.
« on: January 01, 2015, 09:39:37 PM »
Hi,

I just got Unity Pro and was adding the pro-only image effects to my other cameras to test them out and noticed that my NGUI elements where all blurry and fuzzy. I'm not sure if adding the effects to my camera could have caused this but its the only thing I can remember doing before this problem occurred. i've removed them and the problem persists.

Thanks,
Jack Lewis

11
NGUI 3 Support / How to use progress bars?
« on: January 01, 2015, 09:26:22 AM »
Hi,

Needing help on how to add my own value float variable to have an effect on the progress bar. Is it similar to controlling the text of a label at runtime by first getting the label/progress bar component then setting the value of the text/progress.

Thanks,
Jack Lewis

12
NGUI 3 Support / Updating NGUI Query
« on: December 29, 2014, 11:40:20 PM »
I've read that updating NGUI requires you to open an empty scene, delete NUGI from your project, then reimport it as the latest version from the asset store.
However that didn't sound right to me cause wouldn't deleting it potentially ruin other scenes in your project already using NGUI? Or am I being silly and the reason you do this in an empty scene is too stop that from happening.

13
NGUI 3 Support / Re: Can't move object
« on: December 29, 2014, 09:48:14 PM »
As I just updated Unity and am using an out of date version of NGUI, shall I update it to see if that fixes the issue?

14
NGUI 3 Support / Re: how to update nGUI
« on: December 29, 2014, 03:42:18 PM »
The method of updating stated in the readme that asks you to delete NGUI from your project and reimport it sounds quite destructive to any scenes using NUGI doesn't it? Or am I getting something wrong?

15
NGUI 3 Support / Can't move object
« on: December 29, 2014, 03:21:54 PM »
Hi,

I just downloaded the latest version Unity so that's probably what has caused this problem.

The problem is that when I try and move a sprite in the scene, it won't budge at all and as long as I'm trying to move it a long slew of errors show up on my console.

Error the first:
NullReferenceException: Object reference not set to an instance of an object
UIPanel.get_worldCorners () (at Assets/Function/NGUI/Scripts/UI/UIPanel.cs:623)
UIPanel.get_localCorners () (at Assets/Function/NGUI/Scripts/UI/UIPanel.cs:554)
NGUISnap.Add (UnityEngine.Transform root, UnityEngine.Transform child) (at Assets/Function/NGUI/Scripts/Editor/NGUISnap.cs:101)
NGUISnap.Recalculate (UnityEngine.Transform t) (at Assets/Function/NGUI/Scripts/Editor/NGUISnap.cs:81)
NGUISnap.Recalculate (UnityEngine.Object obj) (at Assets/Function/NGUI/Scripts/Editor/NGUISnap.cs:59)
UIWidgetInspector.OnSceneGUI () (at Assets/Function/NGUI/Scripts/Editor/UIWidgetInspector.cs:608)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)
Rethrow as TargetInvocationException: Exception has been thrown by the target of an invocation.
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:232)
System.Reflection.MethodBase.Invoke (System.Object obj, System.Object[] parameters) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MethodBase.cs:115)
UnityEditor.SceneView.CallOnSceneGUI ()
UnityEditor.SceneView.HandleSelectionAndOnSceneGUI ()
UnityEditor.SceneView.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) (at /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.Reflection/MonoMethod.cs:222)

Error the second:
The targets array should not be used inside OnSceneGUI or OnPreviewGUI. Use the single target property instead.
UnityEditor.DockArea:OnGUI()

As these errors repeat themselves on the console hundreds of times.

Another error I just noticed whilst typing this, selecting any NUGI item in my scene like a label seems to create hundreds of these errors and stop me from being able to scroll through the scene or move at all until I open the console.

Any ideas?
Thanks
Jack Lewis

Pages: [1]