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

Add gameobject dynamically to scene in Unity3d

I am creating a scene in which I want to show list of offers. In order to show the offer, I created a prefab with placeholders for the offer details which I will get at runtime. I created a place holder in the scene to add the prefab to the scene,…
Ashwani K
  • 7,880
  • 19
  • 63
  • 102
6
votes
3 answers

Unity. Function call after a certain period of time

How can I make an object invisible (or just delete) after a certain period of time? Use NGUI. My example (for changes): public class scriptFlashingPressStart : MonoBehaviour { public GameObject off_Logo; public float dead_logo =…
user3114190
6
votes
4 answers

panel hide and show in NGUI

I am new to NGUI and unity 3d. I have two panels in a ui root. its named as firstPanel and secondPanel. secondPanel is deactivated in scene. In firstPanel i have so many buttons and one is a play button, that is image button. While Clicking on…
Sona Rijesh
  • 1,041
  • 7
  • 32
  • 62
5
votes
1 answer

Need help dissecting and recreating the perfect scroll easing based on PastryKit

With web i usually just use the native scroll mechanisms. They are fast, reliable and there is no coding involved. But, while working more and more in Unity, i have discovered that the available plugins for scroll, even the big ones such as Unity.UI…
MrManafon
  • 146
  • 1
  • 12
5
votes
3 answers

How to remove/disable On-Keyboard Textbox when Using UIInput NGUI?

I am using NGUI's UIInput class to accept text input from user. when i start typing in text box in mobile devices. a key board appears and it has an another textbox within it self, with "OK"/"Done" button (Like a keyboard accessory view, if we're…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
4
votes
1 answer

Unity3D - NGUI - How to unload textures that were loaded with the load of a prefab?

I'm using this to unload the textures when I no longer need the prefab (is a popup): UISprite[] widgets = gameObject.GetComponentsInChildren(true); for (int i = 0, imax = widgets.Length; i < imax; i++) { UISprite w =…
Damian Trimboli
  • 111
  • 2
  • 5
4
votes
4 answers

Unity3d components

I started to learn how to create 2D games with the Unity3D engine. I found two plugins: NGUI and 2D Toolkit. My problem is that these plugins have duplicate functionality, both work with sprites, animation, etc. I can't work out which is better to…
Outsider
  • 281
  • 1
  • 4
  • 15
4
votes
1 answer

Load/Unload Assets dynamically

i have to manage my RAM so want to load/unload all my ngui pages on the fly. For that i have created AssetBundle with prefabs and i'll kept those AssetBundles in my apk What is the way to load/unload them on adroid device. I roughly know about…
chetan rane
  • 533
  • 2
  • 10
  • 25
3
votes
2 answers

How to 9-slice a sprite while keeping the center not scaled?

I wonder is there any way to slice this sprite(dialog pop up thing) that could keep the bottom center (the upside-down triangle) not scaled? I'm using nGUI if it matters.
armnotstrong
  • 8,605
  • 16
  • 65
  • 130
3
votes
1 answer

Changing NGUI UILabel vertical linespacing

Im using a .ttf font in an NGUI UILabel, and am having some weird issues with the line spacing of the font. If I use the font in 'microsoft paint', I get no vertical line spacing issues whatsoever... However, when I use the font in an NGUI UILabel…
2
votes
1 answer

NGUI ScrollView performance issue(scroll view is very slow in responding to drag/pan event)?

I have an NGUI Scroll View inside my panel, in which i have an NGUI Texture called YellowBoard(see image for hierarchy). YellowBoard has UIDragScrollView and Boxcollider attached to it as shown in the image , i have 250 child gameobjects with…
Pawan Joshi
  • 1,581
  • 3
  • 20
  • 40
2
votes
2 answers

How use Button in ScrollView in NGUI to scroll the object

I made the Scrollable View in NGUI using following tutorials Here but how can I use button to scroll the objects. Like If i click on up button it ScrollView should be up and If i click on down ScrollView should be down. Your help will be…
Pawan Chaurasiya
  • 881
  • 2
  • 16
  • 30
2
votes
4 answers

Flashing GameObject in Unity

How can I create a flashing object in Unity using SetActiveRecursively (Moment = 1 second). My example (for changes): public GameObject flashing_Label; private float timer; void Update() { while(true) { …
user3114190
2
votes
3 answers

Setting UIpanel size from script

I am trying to re-create my game using the NGUI plugin for Unity and I like it a lot so far, but am in the mist on this one. I have an UIPanel called games and I want programmatically to change it size but don't know how to get into the…
Mansa
  • 2,277
  • 10
  • 37
  • 67
2
votes
3 answers

Reparenting prefabs between to panels in Unity3d (NGUI)

Not sure this is the best forum for Unity3d/NGUI questions but give it a try... I am trying to move a gameobject from a scrollable panel to a normal panel by reparenting it. firstGameObject.transform.parent =…
Sunkas
  • 9,542
  • 6
  • 62
  • 102
1
2 3
8 9