This repository has been archived on 2024-11-03. You can view files and clone it, but cannot push or open issues or pull requests.
snakeinabox/Assets/NaughtyAttributes/Scripts/Test/ReorderableLists.cs
2020-07-09 11:41:01 -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;
}