using System.Collections.Generic; #if UNITY_EDITOR using UnityEditor; #endif using UnityEngine; using XRTool.Util; namespace ShadowStudio.Model { public class ArtResConf : ScriptableObject { public List resModelList; public ArtType artType; public InstaceType instaceType = InstaceType.References; #if UNITY_EDITOR [MenuItem("Assets/Create/DataBase/ArtResConf", false, 0)] static void CreateDynamicConf() { Object obj = Selection.activeObject; if (obj) { string path = AssetDatabase.GetAssetPath(obj); ArtResConf bullet = CreateInstance(); if (bullet) { string confName = UnityUtil.TryGetName(path); AssetDatabase.CreateAsset(bullet, confName); } else { Debug.Log(typeof(ArtResConf) + " is null"); } } } #endif } }