pixelgon/Assets/NaughtyAttributes/Scripts/Test/ReorderableLists.cs
2020-06-05 11:54:36 -07:00

26 lines
532 B
C#

using NaughtyAttributes;
using System.Collections.Generic;
using UnityEngine;
[System.Serializable]
public struct SomeStruct
{
public int Int;
public float Float;
public Vector3 Vector;
}
public class ReorderableLists : MonoBehaviour
{
[BoxGroup("Reorderable Lists")]
[ReorderableList]
public int[] intArray;
[BoxGroup("Reorderable Lists")]
[ReorderableList]
public List<Vector3> vectorList;
[BoxGroup("Reorderable Lists")]
[ReorderableList]
public List<SomeStruct> structList;
}