Unity3D basics-relationships between game objects and components

Source: Internet
Author: User

Source: http://edu.china.unity3d.com/learning_document/getData? File =/Manual/TheGameObject-ComponentRelationship.html

When using Unity, we often create a game object (GameObject). When using the shortcut key ctrl + shift + N to create an empty game object, you will find that a transforme component (transform component) is added to the game object by default ). Next we will introduce the transformation component.

Transform Component)

Creating a game object without a Transform Component in Unity is impossible. Transform Component is one of the most important Components, because the Transform attribute of all game objects is enabled by this Component. In the game world/scenario View, it defines the position, rotation, and scaling of the game object. If a game object (GameObject) has no Transform Component, it is only some information in the computer memory and does not actually exist in the scenario world.

Other Components)

Transform Component is a key Component of all game objects (GameObjects). Therefore, each game object (GameObject) has one, but the game object can contain other Components ).



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.