예제 #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();
            }
        }
예제 #3
0
        void Initialize()
        {
            configChanged   = false;
            filterType      = AssetBundleDispatcherFilterType.Root;
            targetAssetPath = AssetDatabase.GetAssetPath(target);
            if (!AssetBundleUtility.IsPackagePath(targetAssetPath))
            {
                return;
            }

            packagePath       = AssetBundleUtility.AssetsPathToPackagePath(targetAssetPath);
            databaseAssetPath = AssetBundleInspectorUtils.AssetPathToDatabasePath(targetAssetPath);
            dispatcherConfig  = AssetDatabase.LoadAssetAtPath <AssetBundleDispatcherConfig>(databaseAssetPath);
            if (dispatcherConfig != null)
            {
                dispatcherConfig.Load();
                filterType = dispatcherConfig.Type;
            }
        }