Top "Unity3d-gui" questions

Questions related to the new UI system in Unity 4.6 and newer or the old GUI class.

Get text from Input field in Unity3D with C#

I'm trying to get a text inside an inputField in Unity3D with C#. I've placed an inputField in my …

c# unity3d input-field unity3d-gui
How to scroll to a specific element in ScrollRect with Unity UI?

I built a registration form for a mobile game using Unity 5.1. To do that, I use Unity UI components: ScrollRect + …

user-interface unity3d unity3d-gui
How to access RectTransform's left, right, top, bottom positions via code?

I have a UI Canvas with render mode world space set. For all UI elements that belong to this canvas, …

unity3d unity3d-gui
How to get Text from UI.InputField?

I want to retrieve the text from a UI InputField but I'm not sure how.

c# unity3d input-field unity3d-gui
Unity3D Slider onValueChanged sending only 0 (or other defined value)

I'm trying to attach an onValueChanged event to my GUI Slider, but for some reason it gives me a mandatory …

unity3d unity3d-gui unity3d-editor
4.6 New UI How to change Button Image?

Everything I search is based on the old UI. I've tried the following button.image = Resource.Load<Image>("..."); …

c# unity3d unity3d-gui
Fade out Unity UI text

When I run the following code on my UI text Color color = text.color; color.a -= 1.0f; text.color = …

c# unity3d unity3d-gui
Extending Unity UI components with custom Inspector

Is it possible to extend the new unity ui components like for example the transform component? Because nothing happens when …

c# unity3d unity3d-gui
Unity Canvas does not fill screen

I have a 2D game set to 1080p pixel size (so each unit equals 1 pixel) and I have added a …

unity3d unity3d-gui
Unity3d progress bar

I am developing a game using unity3D and I need help making a progress time bar such that on …

c# unity3d unityscript unity3d-gui