void OnSelectionChange()
    {
        referenceObjectList.Clear();
        SceneObjectUtility.Init();

        SceneObjectUtility.GetReferenceObject(Selection.activeGameObject, referenceObjectList);
    }
Пример #2
0
    void UpdateList()
    {
        refObjectList.Clear();

        foreach (var obj in allObject)
        {
            SceneObjectUtility.GetReferenceObject(obj, refObjectList);
        }
        refObjectList.Sort((x, y) => {
            return(x.rootComponent.GetInstanceID() - y.rootComponent.GetInstanceID());
        });
    }