Unity 6.3
0 онлайн 21 гостей 3 в системе
Вход

HideFlags.NotEditable

Описание

Объект не поддается редактированию в Inspector.

using UnityEngine;

public class Example : MonoBehaviour { // Create a plane and dont let it be modificable in the Inspector // nor in the Sceneview.

void Start() { GameObject createdGO = GameObject.CreatePrimitive(PrimitiveType.Plane); createdGO.hideFlags = HideFlags.NotEditable; } }