Questions tagged [ngui]

NGUI is an addon for Unity3D supporting developers to build enhanced UI systems like menus. It supports building powerful GUIs while rendering all elements within one draw call.

Citing from NGUI's web site http://www.tasharen.com (Oct 9, 2012):

NGUI is a powerful UI system and event notification framework for Unity (both Pro and Free) written in C# that closely follows the KISS principle. It features clean code and simple, minimalistic approach to everything. Most classes are kept under 200 lines of code. For a programmer this means a much easier time when it comes to working with the kit — from extending its functionality to tweaking the existing one. For everyone else this means better performance, less frustration, and more fun.

128 questions
0
votes
0 answers

Deleting Children in NGUI

I'm not having trouble of deleting the children of the other statements but this 1 statement is pretty weird. Here's is my code of deleting the children in NGUI void DeleteChildrens(Transform t) { NGUITools.DestroyChildren(t); } Now here is how…
Ginxxx
  • 1,602
  • 2
  • 25
  • 54
0
votes
0 answers

Trying to customize NGUI - UIButton in the Inspector

When I try to customize a class of "NGUI - UIButton", I got a problem that's not working serialize variables in Unity editor inspector view. public class MyButton : UIButton // inherited NGUIButton class { public bool _isChecked; public int…
Jaejun Kim
  • 11
  • 1
0
votes
0 answers

OnMouseDown should not work over NGUI

I have gameobjects where OnMouseDown event attached and its event working fine but the problem is the event is also working when NGUI UITexture is open. I want to prevent OnMouseDown when mouse over the UITexture. I have used …
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
0
votes
1 answer

Compare two functions (Checkbox) Unity

I want to compare this two function const string RADIO_ON_SPRITE_NAME = "popup_radiobtn01_on"; const string RADIO_OFF_SPRITE_NAME = "popup_radiobtn01_off"; [SerializeField] UIButton livestream = null; [SerializeField] UIButton render = null; …
NoobProgrammer
  • 488
  • 1
  • 8
  • 21
0
votes
2 answers

Angular 4 @ngui-autocomplete

I am trying to use the library @ngui-autocomplete in Angular 4 project. I use a form for both creating new entries in database and also for updating/editing existing ones. The Code for my autocomplete input is the following:
mixtou
  • 729
  • 10
  • 27
0
votes
1 answer

Switching from NGUI to UGUI?

I’ve been using NGUI for years and I’m thinking of switching to UGUI. Does anyone know well-known games that have been developed using UGUI? I know a lot that have used NGUI but not sure about UGUI. I’d like to see if the games are good. I would…
Tom Perm
  • 19
  • 6
0
votes
1 answer

NGUI OnDragOver() pass through when colliders overlap

we are using NGUI, some collider has to be overlapped, and we want the ONDragOver() event received by the collider behind, ie should pass through to the underneath collider, Here is a demonstration of the situation: The bigger one is on top of the…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

Changing the UISprite tint color during runtime with NGUI not working

I have following code try to change to tint color of a UISprite to indicts an error, I could see the tint color has been changed to red in the inspector, but sprite in the scene kept unchanged, What Have I done wrong? private void ShowErr(string…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
2 answers

NGUI can't bring sprite to front in Unity

I have a sprite widget in NGUI, and It can't be brought to front what ever the depth I change in the editor: Note that the orange panel is a scroll view of NGUI. Here is the inspector setting of the sprite that I want to set to the very front: And…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

raycast wont hit collider after using NGUI?

after turn the main UI framework to NGUI, we found that We couldn't hit object with collider anymore with following code which was working fine we not using NGUI: private void checkRayCast() { if ((Input.GetMouseButtonDown(0))) …
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

handle ngui's button event programmatically in unity

I'm transferring from Unity's UI to NGUI. Formerly, I could add listeners to button with following scripts: button.GetComponentInChildren
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

Unity add content dynamicly to NGUI grid

I am using Unity 5.5.2f and NGUI 3.9.4 and I want to take advantage of NGUI's Grid to auto arrange items in perfect display. The thing is that when I add items in the hierarchy manually things will work fine but when I add items through the script ,…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
0
votes
1 answer

UILabels not drawing on device

Recently I had a problem after an update of my app on several android devices (seems they are not higher than 4.4, or opengl 2, not sure). All app UI had broken just after launch (everything looks like filled square, background is green, logo is…
0
votes
1 answer

Applying Rigidbody force to Unity components

I have a NGUI sprite, NGUI label and Rigidbody component attached to my gameobject. When I apply force to the rigidbody of my gameobject, only one of the components is affected. If I have both the components enabled, then force is applied to the…
mukul
  • 171
  • 1
  • 15
0
votes
1 answer

Unity (NGUI) how to scale object in scroll view

Using NGUI I created a horizontal scrollview with NGUI's example code "UICenter on Child". This is working properly. I want to dynamically scale the center sprite to 120%. How can I accomplish this? I am new to Unity so please provide a complete…
TheGrayVacuum
  • 703
  • 2
  • 7
  • 12
1 2 3
8 9