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

Pass Method As EventDelegate

I am attempting to pass a method as a parameter. But I am getting a compiler error and I dont quite understand what I am doing wrong? The compiler error is: Argument `#1' cannot convert 'method group' expression to type 'EventDelegate' public…
sazr
  • 24,984
  • 66
  • 194
  • 362
1
vote
1 answer

iTween.FadeTo not working with NGUI Sprite

I am trying to make fade out effect in Sprite of NGUI using iTween.FadeTo but not working. like that: iTween.FadeTo(gOFlag, iTween.Hash("alpha",1.0f,"time",6f)); Am i doing something wrong if yes please let me know.
Pawan Chaurasiya
  • 881
  • 2
  • 16
  • 30
1
vote
1 answer

How to make 2 GameObjects drag proportionally?

I have 2 GameObjects, the first one is on a 2D interface (plane), and the second one is a 3D character (also sitting on a plane), so the 2D texture represents the 3D character in the game, I want to drag the 2D texture and have the 3D character move…
Alexy Ibrahim
  • 554
  • 1
  • 7
  • 20
1
vote
3 answers

NGUI in Unity what code to a button to go to the next scene

I'm newbie in Unity3D, I am using NGUI 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. Can someone help me with these…
EysAce
  • 17
  • 5
  • 12
1
vote
2 answers

`UILabel' could not be found

When I Place my Demo.cs in Standard Assets Folder I am Getting this error: Assets/Standard Assets/Demo.cs(130,17): error CS0246: The type or namespace name 'UILabel' could not be found. Are you missing a using directive or an assembly reference? and…
Dasu
  • 433
  • 6
  • 16
1
vote
2 answers

Texture offset in atlas to create an animated sprite with NGUI

In Unity3d, I got a GameObject with the UISprite component from the NGUI plugin. So I need to use an atlas with textures, to set the texture for the UISprite. Now I want the UiSprite to be animated. The different frames are in a spritesheet within…
DijkeMark
  • 1,284
  • 5
  • 19
  • 41
1
vote
2 answers

Clamp X position of object in unity 3d

Here is my code in unity 3d moveDirection = Vector3.forward + new Vector3(Input.acceleration.x * 0.3f, 0, 0); // transform.position.x = Mathf.Clamp(transform.position.x, -2.0f, 2.0f); transform.Translate(moveDirection * Time.deltaTime *9); A…
Sona Rijesh
  • 1,041
  • 7
  • 32
  • 62
0
votes
0 answers

Unity3d NGUI and New Input System

I want to use Ngui to make my UI with Unity3d, my problem is that if I refer to a player input action, for example to jump, I see: Space[Keyboard] and Button South[Gamepad]. So I ask if it is possible to make an Ngui Button that reacts for one of…
0
votes
1 answer

Unity NGUI add new Sprite in Atlas and goes out wrong with offset Problem

im a client developer my app uses NGUI in 2020.3.17 version in unity i always have a problem.. when i have to add a new sprite in a Atlas and update the atlas that i added new sprite goes wrong not only the image that i added, every image in that…
Tony
  • 1
0
votes
1 answer

Is it possible to change model variable value in view/ HTML in Angular?

I want to use in my project but not in order to display or not an image but in order to activate/deactivate a style for a specific button. This means I want to change the value of a variabe only if is in the…
user11903678
0
votes
0 answers

how to use Raycast NGUI in RTS Game?

I am working on the 2D Isometric RTS project. It's like They are Billions or Starcraft. But while working on the map-editor, RayCast faced an unbreakable problem with NGUI. Although you must create the ground when you click the mouse,…
0
votes
1 answer

How to make a 3D scroll view with NGUI

I want to make 3D scroll view using NGUI. Like the YouTube video Unity 3D simulates the iPhone scroll screen. How can I make it like this?
우원진
  • 159
  • 3
  • 11
0
votes
0 answers

Changing a Inputfields with Tab in Mobile version of keyboard. (C#, NGUI)

Is posible make a option to change a input field with this button in mobile keyboard? Keyboard in my smartphone I dont know how to make something like that in my application. I add to update this void Update() { if…
StillDark
  • 3
  • 2
0
votes
1 answer

Show password button(Unity NGUI / C#)

I need to do button that show a password that user input. I tried change a InputType field with button but this only work for Password->Standard no for Standrd->Password. this is my script for button { GameObject NewPasswordInput; private…
StillDark
  • 3
  • 2
0
votes
1 answer

I want angular 4 ng2-ui/map places-auto-complete restricted to a specific country

Here is my code How do set options for the input type to restrict…
1 2
3
8 9