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

Pages: [1] 2
1
NGUI 3 Support / Re: UIWrap Content
« on: February 23, 2016, 06:43:19 AM »
Ah right, so its not as simple as just adding and removing from the content? I thought that removing the component then creating it along with new children would off worked.

As for the OnInitialize what do you mean control what shows up ?

2
NGUI 3 Support / UIWrap Content
« on: February 22, 2016, 02:13:27 PM »
Hey fella's

I am having some issues with UIWrapContent. I create my object dynamically and on start. On start the wrap works perfect! BUT when I delete those buttons and create new ones then swipe to move them i get tonnes of errors. I have tried to delete the WrapContent then re-add it before buttons are created, after they are created, I sorted after created and still it will not work, i just keep getting this error.

What am i doing wrong?

Thanks

  1. MissingReferenceException: The object of type 'Transform' has been destroyed but you are still trying to access it.
  2. Your script should either check if it is null or you should not destroy the object.
  3. UnityEngine.Transform.get_localPosition () (at C:/buildslave/unity/build/artifacts/generated/common/runtime/UnityEngineTransformBindings.gen.cs:40)
  4. UIWrapContent.WrapContent () (at Assets/NGUI/Scripts/Interaction/UIWrapContent.cs:193)
  5. UIWrapContent.OnMove (.UIPanel panel) (at Assets/NGUI/Scripts/Interaction/UIWrapContent.cs:92)
  6. UIPanel.set_clipOffset (Vector2 value) (at Assets/NGUI/Scripts/UI/UIPanel.cs:416)
  7. UIScrollView.Press (Boolean pressed) (at Assets/NGUI/Scripts/Interaction/UIScrollView.cs:759)
  8. UIDragScrollView.OnPress (Boolean pressed) (at Assets/NGUI/Scripts/Interaction/UIDragScrollView.cs:95)
  9. UnityEngine.GameObject:SendMessage(String, Object, SendMessageOptions)
  10. UICamera:Notify(GameObject, String, Object) (at Assets/NGUI/Scripts/UI/UICamera.cs:1503)
  11. UICamera:ProcessPress(Boolean, Single, Single) (at Assets/NGUI/Scripts/UI/UICamera.cs:2224)
  12. UICamera:ProcessTouch(Boolean, Boolean) (at Assets/NGUI/Scripts/UI/UICamera.cs:2453)
  13. UICamera:ProcessMouse() (at Assets/NGUI/Scripts/UI/UICamera.cs:1888)
  14. UICamera:ProcessTouches() (at Assets/NGUI/Scripts/UI/UICamera.cs:2002)
  15. UICamera:Update() (at Assets/NGUI/Scripts/UI/UICamera.cs:1689)
  16.  

3
NGUI 3 Support / Anchor stretches or overlaps other ui elements
« on: December 06, 2014, 06:35:12 AM »
Hi there.

This is probably a dumb question and there is probably an answer out there but i have not found it yet.

I used to just keep using my same old ngui as i was used to it but made the switch to the new version as i seen some tuts on your from michael and it just looked sick!

I am busy creating the ui for my game and am having trouble with anchoring problems.

When i anchor my objects sometimes depending on resolution my ui either get stretched vertically so it is very thin or stretched horizontally. Another problem is that when i anchor my objects and change the resolution they seem to overlap each other and not stay where i want them too.

Again probably a dumb question and probably very obvious but have been up for 30+ hours and my brain is dying.

Cheers

John

4
NGUI 3 Support / Re: New NGUI
« on: October 10, 2014, 01:52:58 PM »
bump.

5
NGUI 3 Support / New NGUI
« on: October 10, 2014, 06:44:53 AM »
Hi there,

I have actually used NGUI for a long time and only just downloaded the latest release.

I am used to anchors etc taking care of everything for me, from pos, to scale.

I cant for the life of me get my objects to scale properly with this new system.

I used to follow this structure.

Panel,
GO,
Anchor
Sprites etc

But i have read that the anchor system is now built in.

How do you use it correctly so that i can position my elements the way i used to and also have it scale properly?

Thanks

6
NGUI 3 Support / Re: Iphones scaling?
« on: January 31, 2013, 08:25:55 AM »
We decided to check which iphone model was currently active, if it was the 5 then we would swap out a loading screen to fit it's dodgy ratio else swap back out our default as the scaling happens.

7
NGUI 3 Support / All Images Are Gone
« on: January 31, 2013, 08:13:35 AM »
Hi there, the problem we are having now is that all of our images are gone, We dont know why but when we updated our svn (We have gone through 104 revisions without any trouble before) the UI is completely gone, The atlas is still there and all the co-ordinates but the actual images are gone. We have packaged up our gui and send it as a package and rar and still it is no longer visable.

The other weird thing is that the colliders are there, button scale etc. It still works on one the computers but the other developers ui is gone and it is gone on the mac also.

Has anyone experienced this before and if so how do we fix it.

Thanks

8
NGUI 3 Support / Re: Iphones scaling?
« on: January 30, 2013, 11:03:10 AM »
Never mind found a solution.

9
NGUI 3 Support / Re: Iphones scaling?
« on: January 30, 2013, 04:59:28 AM »
What about Automatic size and manual height how would i do it with those?

10
NGUI 3 Support / Re: Iphones scaling?
« on: January 30, 2013, 04:42:48 AM »
So after i have done that should i design the ui for the iphone 5 then NGUI will scale it to fit the other devices?

11
NGUI 3 Support / Iphones scaling?
« on: January 29, 2013, 01:44:11 PM »
Hi there, I was wandering how you can scale from iphone5 all the way down to 3gs without losing the proper placement of the ui? This is something that has always got me stuck :D

12
NGUI 3 Support / Re: UIPanel.LateUpdate()
« on: January 22, 2013, 12:24:29 PM »
Our build crashes but only after adding NGUI?

13
NGUI 3 Support / UIPanel.LateUpdate()
« on: January 22, 2013, 12:23:29 PM »
Hi there, In our scene we have 9 panels all for there own part of the menu. When we open the profiler we are getting 20% usage by UIPanel.LateUpdate(), How can we reduce this as we are building for the iphone?

14
NGUI 3 Support / Re: Best practices for Managers
« on: October 13, 2012, 05:31:07 AM »
Exactly what Pip said :)

15
NGUI 3 Support / Re: Best practices for Managers
« on: October 06, 2012, 01:41:53 PM »
Aren Mook where are you?

Pages: [1] 2