[ReorderableList]
Support Types
Type
Description
Parameters
Parameter Name
Arguments
Description
Examples
using System.Collections.Generic;
using UnityEngine;
using RenownedGames.Apex;
public class ReorderableListExample : MonoBehaviour
{
[ReorderableList]
public List<string> stringList;
[ReorderableList(ShowAddButton = false, Draggable = false)]
public int[] fixedList;
[ReorderableList(OnHeaderGUI = "DrawHeader")]
public List<float> customHeaderList;
private void DrawHeader(Rect position)
{
EditorGUI.LabelField(position, "My Custom Header");
}
}Last updated