예제 #1
0
        private static InspectorConfig GetDefaultConfig(InspectorPrefabs prefabs)
        {
            var config = new InspectorConfig();

            config.PrefabSelector.AddMatcher(m => true, prefabs.SimpleDataMember);
            return(config);
        }
예제 #2
0
        private static InspectorConfig GetGameObjectConfig(InspectorPrefabs prefabs)
        {
            var config = new GameObjectInspectorConfig();

            config.DividerPrefab = prefabs.DividerPrefab;
            config.LabelPrefab   = prefabs.LabelPrefab;
            config.PrefabSelector.AddMatcher(m => true, prefabs.SimpleDataMember);
            return(config);
        }
예제 #3
0
 public static void Init(InspectorPrefabs prefabs)
 {
     ConfigSelector.AddMatcher(o => true, GetDefaultConfig(prefabs));
     ConfigSelector.AddMatcher(o => o is GameObject, GetGameObjectConfig(prefabs));
 }