言語: 日本語
  • C#
  • JS
  • Boo

スクリプト言語

お好みのスクリプト言語を選択すると、サンプルコードがその言語で表示されます。

HideFlags.HideInHierarchy

Description

オブジェクトが「Hierarchy」に表示されません

	// Creates 5 planes and hides them from the Hierarchy in the Editor.

	function Start() {
		for(var i : int = 0; i < 5; i++) {
			var createdGO : GameObject = GameObject.CreatePrimitive(PrimitiveType.Plane);
			createdGO.hideFlags = HideFlags.HideInHierarchy;
		}
	}