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
1
vote
1 answer

Execute NGUI button press from script in unity C#

I have a NGUI button and it contains UIButton and UIToggle script. From another script i want to run its click event with all relevant button state changes like colour change etc. For this I found this link and here is my code. public UIButton…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
1
vote
1 answer

ScrollView using Button (NGUI C# UNITY)

I'm having a problem implementing the button to swipe it to the next page I am using NGUI Here's my script using System.Collections; using System.Collections.Generic; using UnityEngine; public class NGUI_PageNavigation : MonoBehaviour { public…
Ginxxx
  • 1,602
  • 2
  • 25
  • 54
1
vote
1 answer

Get Json Data and parse the data individually (c# unity)

I successfully converted my string data to json by using this code //1 = blue circle, 2 = red circle string jsonString = "[1, 1, 1, 2, 1, 1, 1, 2, 1, 2, 1, 1, 1, 2, 1, 1]"; //sample data ExampleClass dataParser = new…
Ginxxx
  • 1,602
  • 2
  • 25
  • 54
1
vote
1 answer

NGUI Why UICamera.currentCamera is returning null?

I found we can't assign UICamera.currentCamera to a field variable in NGUI as the Camera.main, we have to assign it every time in Update() which I think may cause a performance issue: this works using System.Collections; using…
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
1
vote
0 answers

back to back ngui tween play

I have an object "Crane" which moving/animate with help of tween. Different parts of crane moving using tween and playing back to back with help of onFinish event of tween. Everything working is fine but some time my crane tween stuck in different…
Muhammad Faizan Khan
  • 10,013
  • 18
  • 97
  • 186
1
vote
0 answers

few questions about Unity5 & NGUI on ipad Mini

When all functions are finished on Unity5 Editor, I build it on iPad mini2. But some issues are followed: a. The "made with unity" logo and text is always flickering, with constant frequency to show and hide. However, I ever made the logo in the…
koalago
  • 119
  • 10
1
vote
2 answers

How to make a ScrollView with many buttons in one page in Unity3D?

I want to make a manual like this: It can switch to the next page or last page, and click on the character it will turn to the detail page. Now I have achieved this: The problem is when the mouse is on the character, it can not scroll view but…
Chenxing Zheng
  • 117
  • 1
  • 2
  • 10
1
vote
0 answers

NGUI "Too many vertices on one panel" in edit mode

We're using NGUI for our UI in our current Unity game, and for whatever reason, when viewing the UI in the inspector, it will randomly bug out, fail to draw, and throw the "Too many vertices in one panel" error, listing 75,548 vertices as being…
Jestus
  • 623
  • 2
  • 9
  • 25
1
vote
1 answer

NGUI invisible after tracking with Vuforia

I am using Vuforia 4-2-3, the latest NGUI verion and Unity5.0.1.p3 My GUI works fine until I track a target. After that, my GUI is invisible However, the collision still works. So buttons are working, only I can't see sprites, textures or…
Jenny
  • 469
  • 2
  • 11
  • 25
1
vote
1 answer

UI2D Sprite incorrectly displays a texture. Unity

I have UI2D Sprite and Texture. Result - Original texture is circle. Why is that? Help me please. P.s. Some textures are displayed correctly and some incorrectly.
user1528799
  • 463
  • 1
  • 8
  • 18
1
vote
1 answer

GetComponent Null

I am new to study Unity3d game development, I have one GameObject so called GameManager, and GameManager.cs has been added to it. Like this: snip of GameManager.cs, I got null exception when I run: public void DisplayTileGrid() { tiles =…
Rui Huang
  • 382
  • 1
  • 5
  • 18
1
vote
2 answers

NGUI How to know which drop zone my object is over?

I am trying to create an game board by using Unity and NGUI and everything is working ok now. I am using the DragNDrop script on my dragable object and on my fields on the board I am using UIDragDropContainer. But, is there a way I can tell my…
Mansa
  • 2,277
  • 10
  • 37
  • 67
1
vote
1 answer

Screen height gets smaller when using UIInput and Android

I am trying to create an input field with NGUI and Unity for my android app. When the keyboard appears on screen the NGUI screen mashes together in the height? How can I avoid this? When building to iOS it is not a problem so it seems to be Android…
Mansa
  • 2,277
  • 10
  • 37
  • 67
1
vote
2 answers

Unity 2D - Dynamically instantiate new prefab inside NGUI's "UI Root"(as Parent)

Im new to unity. When I instantiate a new prefab GameObject from inside script as follows: GameObject newArrow = (GameObject)Instantiate(arrowPrefab); newArrow.transform.position = arrowSpawnTransform.position; But this is creating the object in…
user1102532
  • 495
  • 6
  • 16
1
vote
1 answer

How to change Font type in Unity?

How do I program it so that I can change the font type to: Coalition or Arial... Here is my current code... using UnityEngine; using System.Collections; public class InvSlotHandler : MonoBehaviour { private int excess = 1; UILabel lbl; …
Savish Khan
  • 53
  • 1
  • 1
  • 8
1
2
3
8 9