Version: 2023.1
언어: 한국어

NonReorderableAttribute

class in UnityEngine

/

다음으로부터 상속:PropertyAttribute

매뉴얼로 전환

설명

Disables reordering of an array or list in the Inspector window.

By default, array or list script variables are presented with a UI control that allows array element reordering via drag handles to the left of element content. You can use [NonReorderable] attribute on a script array or list variable to disable this. When reordering is disabled, the Inspector shows arrays or lists with a simple UI control that has an array size followed by array elements.

using UnityEngine;

public class NonReorderableAttributeTest : MonoBehaviour { [NonReorderable] public int[] array; }

상속된 멤버

변수

orderOptional field to specify the order that multiple DecorationDrawers should be drawn in.