GameObject [],List <gameobject>,EditorWindow中的自定义检查器统一c#

时间:2017-06-19 18:53:06

标签: c# unityscript

我在显示GameObject[]数组和list<T>

时遇到问题

在我的EditorWindow中,这是我的代码:

public class WaypointItem
{
    public List<GameObject> AllEnemys = new List<GameObject>(); // Enemies to kill
    public GameObject[] Objectman; // object to spawn
}

我想在EditorWindow

中显示它
public class WaypointItemEditor : EditorWindow
{
//Display Objectman[] here.
// Display  AllEnemys list here.
}

0 个答案:

没有答案