The Unity 3d study for some time, want to write something to share with you, as the saying goes, a little bit. Everything has to be step by step.
Ngui, as the foundation of Unity, stands out in terms of UI. Next I say a little bit about the basic knowledge of Ngui;
First, the Uiroot; Uiroot as the root of the UI module. We re-create the UI in its sub-object gameobject;uiroot A major feature is the adaptation of the screen;
Here's how to do it: in fact, I also like to see the actual effect; Whenever I see something that I think is incredible, I'm curious, and I want to explore what it is, so amazing. Perhaps this is the nature of Scorpio man;
First of all, you need to download Ngui this plugin first. , create a Unity project, and then you can import the Ngui directly into the unity environment, or into the asserts of the project file;
Then we can use the Ngui; we open the Unity project we created;
Use the following shortcut keys in the hierarchy area: Shift +alt +s. Create a uiroot; or you can create a gameobject directly at the Create location in the hierarchy. and add a uiroot script;
Uiroot Script
Among them minimum hieght; Maximum height; Play a role in screen adaptation;
I just mentioned the script; Unity Development supported scripts are three C #, JS, Python, but C # is not called Scripting in principle, that's disrespect for C #. C # is well-born and decent to be named after Java;
When we create a Gameobject object in the hierarchy, we can manually bind a script to control all the behavior of this gameobject;
Let's get here today. Welcome everyone to join 367086379 QQ Group chat ....
Unity 3d technology Sharing (Uiroot)