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
2 answers

Unity/NGUI Updating List at runtime

I was wondering if someone could explain to me how I update a list at runtime in Unity? For example I have a spell book, which has 3 spells in it, when I drag them to my action bar they get re-parented to it, what I'm trying to do is get a list of…
Pheonix2105
  • 1,001
  • 2
  • 9
  • 24
0
votes
1 answer

Mobile games how to handle different resolutions in Unity and NGUI?

I have a mobile game developed by U3D and NGUI and targeted to platforms such as android and IOS, but there are so many mobile resolutions and aspect ratios change from 1.3 to event 2. My UI are designed under resolution 1136x640, and UIRoot Scaling…
Cosmore
  • 3,193
  • 4
  • 20
  • 22
0
votes
2 answers

NGUI UILabel text blurry (Unity)

After trying to adjust several settings I am still getting blurry text in my NGUI labels. Does anyone know what the issue could be? I tried increasing the font size. Below is a screenshot that demonstrates. Why is the NEW HIGH SCORE text not high…
joe
  • 16,988
  • 36
  • 94
  • 131
0
votes
2 answers

Controlling the state of the button through the script. NGUI

How can I set the state of a button via a script? Example: button.Hover == true;
user3114190
0
votes
1 answer

How to dynamically create button using NGUI (Unity)

I'm new in both unity and NGUI, I couldn't figure how to assign custom atlas and sprite into the button dynamically. using UnityEngine; using System.Collections; public class createButton : MonoBehaviour { public createButton(){ …
user3373752
  • 3
  • 1
  • 1
  • 2
0
votes
1 answer

NGUI 3.4.9 error NullReferenceException UnityEngine.Material..ctor (UnityEngine.Shader shader) UIDrawCall.CreateMaterial ()

Editor is showing me NullReferenceException UnityEngine.Material..ctor (UnityEngine.Shader shader) UIDrawCall.CreateMaterial () again and again. I am using NGUI 3.4.9 paid version. If I use var texture = www.texture; It shows me error. and if I…
Ankush
  • 2,405
  • 3
  • 22
  • 45
0
votes
1 answer

NGUI labels are fading out on iOS device

I am facing a bizarre situation that is, I have made NGUI panel with sprites and labels and these are working fine on unity editor but when I make a build on iOS device sprites are working as expected but labels are being shown for 0.2 or 0.3 second…
Ankush
  • 2,405
  • 3
  • 22
  • 45
0
votes
1 answer

How to calculate widget bounds?

I need to find the bounds of a widget with all his children. I tried using the following code but got a strange output. Either the widget had children which were more than 100 pixels in width and height the output was something about 1. Vector3…
Kolyunya
  • 5,973
  • 7
  • 46
  • 81
0
votes
2 answers

NGUI elements are being shown as black area in iPod4 and iPhone4

I am working on a game in Unity3d and I am facing a bizarre problem. My NGUI elements are turned into a black area when I run the game into iPod4 and iPhone4. However it is working well in iPad, iPod5 and iPhone5. It seems to me that in iPod NGUI…
Ankush
  • 2,405
  • 3
  • 22
  • 45
0
votes
1 answer

how can I add Spring effect to Button like the button in hay day?

I want to add Spring effect to Button just like the button in Hay Day, could you give a hand? when press the button, it will became 0.9 smaller, when release the button, it will back to original scale with spring effect, just like HayDay button. I…
Jane_Meng
  • 749
  • 1
  • 9
  • 18
0
votes
4 answers

NGUI in Unity what code to a start button to go to the Second scene

And I am using NGUI for my project and i don't know how to code a button created from NGUI button. The only code I know is.: void OnMouseDown Application.loadlevel(1); But it's not working in NGUI button, i want to go to the next scene when the…
EysAce
  • 17
  • 5
  • 12
0
votes
1 answer

NGUI in Unity 3D where to get skins

Hello Im a student and creating an Augmented Reality using Unity 3D,Im using NGUI in Unity for designing and i just wondering on where can I download some skins?? or where can I get it? i just want to use it on my Main menu, for UI designing…
EysAce
  • 17
  • 5
  • 12
0
votes
1 answer

Why can't I add an Input widget from template?

I'm simply trying to create an Input widget. I can add one using the Sprite template, but not the Input template. Why? Can Add To Main Panel! Doesn't work :(
nipponese
  • 2,813
  • 6
  • 35
  • 51
0
votes
1 answer

Call a touch function using NGUI/Unity3D?

I have a game that is using GUITextures for buttons but it isn't working on different resoltutions. So I was told NGUI would do it very easily. But I already have the code written for the GUITexture buttons. How do I do it for NGUI buttons using…
Jason Pietka
  • 181
  • 1
  • 3
  • 16
0
votes
1 answer

How to Fix Resolutions Globally in Menu by Using NGUI in UNITY3D?

I need a menu screen. The menu screen contains Buttons , Background, sliced Sprite. I have done this, but I face one problem: when I change the resolution of menu screen, it changes the background. Initially I was using a resolution of 800 X 480. I…
user2632643
  • 21
  • 2
  • 7
1 2 3
8
9