Unity 3d technology Sharing (Uiroot)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.