public override void OnInspectorGUI() { if (AssetType == TextAssetType.Manifest) { ManifestEditor.OnInspectorGUI(); } //else if (AssetType == TextAssetType.MakerListFile) // MakerListfileEditor.OnInspectorGUI(); base.OnInspectorGUI(); }
internal void OnEnable() { string path = AssetDatabase.GetAssetPath(target); if (path.EndsWith("manifest.xml")) { AssetType = TextAssetType.Manifest; ManifestEditor.OnEnable(path); } else if (path.ToLower().Contains("list/maker/") && path.ToLower().EndsWith(".csv")) { AssetType = TextAssetType.MakerListFile; MakerListfileEditor.OnEnable(path, this); } else { AssetType = TextAssetType.Other; } }