Transform类
1. 官方定义
class in UnityEngine/Inherits from:Component/Implemented in:UnityEngine.CoreModule
属于UnityEngine命名空间下的类,继承自Component类,是UnityEngine.CoreModule的核心模块类
2. 官方描述
Position, rotation and scale of an object.
Every object in a Scene has a Transform. It’s used to store and manipulate the position, rotation and scale of the object. Every Transform can have a parent, which allows you to apply position, rotation and scale hierarchically. This is the hierarchy seen in the Hierarchy pane. They also support enumerators so you can loop through children using:
using UnityEngine;
public class Example : MonoBehaviour
{
// Moves all transform children 10 units upwards!
void Start(