private static InspectorConfig GetDefaultConfig(InspectorPrefabs prefabs) { var config = new InspectorConfig(); config.PrefabSelector.AddMatcher(m => true, prefabs.SimpleDataMember); return(config); }
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); }
public static void Init(InspectorPrefabs prefabs) { ConfigSelector.AddMatcher(o => true, GetDefaultConfig(prefabs)); ConfigSelector.AddMatcher(o => o is GameObject, GetGameObjectConfig(prefabs)); }