No description
Find a file
2022-05-20 18:44:21 +04:30
Preview add preview window 2022-05-20 18:22:19 +04:30
EditorList.cs Create EditorList.cs 2022-05-19 00:04:15 +04:30
LICENSE Create LICENSE 2022-05-20 18:15:00 +04:30
README.md Update README.md 2022-05-20 18:44:21 +04:30

EditorList

Unity 2020.3+

With this class, from now on you can display your lists in the editor window visually!!

Usage

  1. Add EditorList to your project in Editor folder.
  2. Create a Sample Editor Window Class
  3. Create variable from them

Sample

using UnityEditor;
using UnityEngine;

public class Preview : EditorWindow
{
    EditorList<GameObject> gameObjects = new EditorList<GameObject>();

    [MenuItem("Tools/Preview")]
    public static void ShowWindow()
    {
        Preview window = (Preview)GetWindow(typeof(Preview));
        window.Show();
    }

    private void OnGUI()
    {
        gameObjects.DrawList(nameof(gameObjects), position);
    }
}

Preview