Пример #1
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();

            string path = AssetDatabase.GetAssetPath(target);

            GUILayout.Button("我是场景");
            if (path.EndsWith(""))
            {
            }

            if (!AssetBundleInspectorUtils.CheckMaybeAssetBundleAsset(targetAssetPath))
            {
                return;
            }
            GUI.enabled = true;

            if (dispatcherConfig == null)
            {
                DrawCreateAssetBundleDispatcher();
            }
            else
            {
                DrawAssetBundleDispatcherInspector();
            }
        }
Пример #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();
            if (!AssetBundleInspectorUtils.CheckMaybeAssetBundleAsset(targetAssetPath))
            {
                return;
            }
            GUI.enabled = true;

            if (dispatcherConfig == null)
            {
                DrawCreateAssetBundleDispatcher();
            }
            else
            {
                DrawAssetBundleDispatcherInspector();
            }
        }