重要的类
Transfrom
Object
GameObject
Component
Time
Animation
一、Component 找组件
属性:
GameObject
tag
transfromg
函数:
GetComponment
GetComponmentInChildren
GetComponmentInParent
GetComponmenstInChildren
GetComponmentsInParent
二、Transfrom
对物体进行位置,大小,缩放的改变,找孩子
变量:
position:The position of the transfrom in world space.在世界空间坐标transform的位置。
localposition: The position of the transfrom relative to parent transfrom.相对于父级的变换的位置。
LossyScale:相对于模型的,物体的全局缩放(只读)。
LocalScale:相对于父级物体变换的缩放。
函数:
Translate:function Translate (translation : Vector3, relativeTo : Spa