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

Pages: [1]
1
NGUI 3 Support / I'm losing pixel-perfect on mobile
« on: October 02, 2014, 06:10:51 PM »
Hey guys, I'm pretty sure I'm doing something wrong here. It doesn't look like I'm getting pixel perfect in ngui.

I'm making a pretty simple game. It's a top down runner type of game. The main element is 1 little sprite and a model that follows it around the screen. The model is the player. The idea is to move the player by dragging around the sprite. The game is played in portrait mode.

I have UIRoot set to flexible with min-height set to 400 and the max-height set to 1500.

Now the issue. I have the control sprite positioned at the start to 1/4 of the screen.height down. (Can't use an anchor because it needs to be dragged) The device has a screen size of 888 (accounting for the bar at the bottom). So it positions the sprite at -222. All is good, but for some reason that's outside of view.

Eventually I got it to show by placing it 1/6 of the way down instead. But when I drag it the sprite moves faster than my finger, like the ui isn't pixel perfect.

Now the weird part, it's working 100% perfect in the editor. Dragging is working good and resizing is positioning the sprite correctly. It's absolutely driving me mad. NGUI is acting like it's zoomed in or something...

Anybody come across this before?

[also] I've also tested it on a nexus tablet and the same thing is happening.

2
NGUI 3 Support / Not able to upgrade to licensed version
« on: September 12, 2014, 03:52:50 PM »
So I just bought ngui and I'm pumped to upgrade my free version. I followed the 3-step upgrade process listed everywhere, and the normal folder moving stuff for unityscript. New scene -> Remove old ngui folders -> import. I'm getting some errors though.

  1. Assets/NGUI/Scripts/Editor/UIBasicSpriteEditor.cs(16,36): error CS0246: The type or namespace name `UIWidgetInspector' could not be found. Are you missing a using directive or an assembly reference?
  2.  
  3. Assets/NGUI/Scripts/Editor/UIScrollBarEditor.cs(11,34): error CS0246: The type or namespace name `UIProgressBarEditor' could not be found. Are you missing a using directive or an assembly reference?
  4.  


[Update]
I went to look at the importing wizard again and I realized it's not importing everything even though I have everything marked to be imported. So I had to import the files manually. And now that everything is imported I'm getting this even stranger error.

  1. NullReferenceException: Object reference not set to an instance of an object
  2. UnityEditor.TreeViewDragging.DragElement (UnityEditor.TreeViewItem targetItem, Rect targetItemRect, Boolean firstItem) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeViewDragging.cs:201)
  3. UnityEditor.TreeView.HandleUnusedMouseEventsForNode (Rect rect, UnityEditor.TreeViewItem item, Boolean firstItem) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeView.cs:304)
  4. UnityEditor.TreeView.OnGUI (Rect rect, Int32 keyboardControlID) (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/GUI/TreeView/TreeView.cs:408)
  5. UnityEditor.ProjectBrowser.OnGUI () (at C:/BuildAgent/work/d63dfc6385190b60/Editor/Mono/ProjectBrowser.cs:1733)
  6. 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)
  7.  
  8.  
  9.  


I'm using Unity 4.5.2f1

3
NGUI 3 Support / Re: Odd bug and problem with escape
« on: July 17, 2014, 11:05:00 AM »
If community can help, they can, surely -- I am merely saying that Tasharen does not provide support for the free version.

Okay all good. I'm just wondering if any other users have come across this. Anyone?

4
NGUI 3 Support / Re: Odd bug and problem with escape
« on: July 16, 2014, 01:09:45 PM »
Please note that the free version of NGUI doesn't come with any kind of support.

So... no community help either?  :o

5
NGUI 3 Support / Re: Odd bug and problem with escape
« on: July 15, 2014, 07:14:47 PM »
Just coming to say that I found my own way to use both mouse and gamepad at once. Just set UICamera.selectedObject = null; when the mouse moves. And manually select the first button when the gamepad is used and selectedObject == null.

But this problem with things getting stuck in hover when pressing a direction and "A" at the same time is still happening and I'm not sure where to look for it. Has anyone experienced this before?

6
NGUI 3 Support / Odd bug and problem with escape
« on: July 15, 2014, 02:53:41 PM »
I'm using the 2.7 version of NGUI. The bug I'm getting is kinda weird. I have buttons with buttonkeys on and I have a hover transform tween script on them. When I change button by pressing either up or down on the joystick while pressing the confirm button "A" the next button gets stuck in hover. I can keep doing this on all the buttons and they will all be stuck with hover. I don't know if it's been brought up before but it completely breaks the menu.

Now with the escape button. When the user presses the escape button, "B" the whole menu loses focus and breaks. I've searched the forums and the consensus seems to be to use either gamepad only or mouse/touch only. That doesn't work for me since I'm hoping to reach as many platforms as possible. Is there any workaround for this? Is there documentation I can use to manually pick what's selected? Can't I just have it ignore the "B" button?

Pages: [1]