Transform
- childCount
- DetachChildren
- eulerAngles
- Find
- forward
- InverseTransformDirection
- InverseTransformPoint
- IsChildOf
- localEulerAngles
- localPosition
- localRotation
- localScale
- localToWorldMatrix
- LookAt
- lossyScale
- parent
- position
- right
- root
- RotateAround
- Rotate
- rotation
- TransformDirection
- TransformPoint
- Translate
- up
- worldToLocalMatrix
Transform.localScale 自身缩放
var localScale : Vector3
Description描述
The scale of the transform relative to the parent.
相对于父级物体变换的缩放。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
transform.localScale += new Vector3(0.1F, 0, 0);
}
}
// Widen the object by 0.1
//扩大物体的x轴向0.1个单位
transform.localScale += Vector3(0.1,0,0);
最后修改:2010年12月18日 Saturday 23:47