Version: 2022.3
言語: 日本語

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; }

継承メンバー

変数

order複数の DecorationDrawer がある場合に描画する順番を指定するフィールド
Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961