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.childCount 子物体数
var childCount : int
Description描述
The number of children the Transform has.
变换的子物体数量。
using UnityEngine;
using System.Collections;
public class example : MonoBehaviour {
public void Awake() {
print(transform.childCount);
}
}
// print the number of child objects
//打印物体的子物体数
print(transform.childCount);
最后修改:2010年12月19日 Sunday 0:38