用户工具

站点工具


侧边栏

script:unityengine:classes:transform:transform.childcount

Transform.childCount 子对象数

JavaScript ⇒ var childCount: int;
C# ⇒ int childCount;

Description 描述

The number of children the Transform has.

该变换的子对象数量。

JavaScript:

	// print the number of child objects
	print(transform.childCount);

C#:

using UnityEngine;
using System.Collections;
 
public class ExampleClass : MonoBehaviour {
    void Example() {
        print(transform.childCount);
    }
}

Transform

script/unityengine/classes/transform/transform.childcount.txt · 最后更改: 2016/08/02 05:37 (外部编辑)