オブジェクトの情報をインスペクター上で編集不可にします
// Create a plane and dont let it be modificable in the Inspector // nor in the Sceneview.
function Start() { var createdGO : GameObject = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.NotEditable; }
using UnityEngine; using System.Collections;
public class ExampleClass : MonoBehaviour { void Start() { GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.NotEditable; } }