Example #1
0
        //----- property -----

        //----- method -----

        public override void OnInspectorGUI()
        {
            instance = target as AssetInfoManifest;

            if (!initialized)
            {
                var assetInfos = Reflection.GetPrivateField <AssetInfoManifest, AssetInfo[]>(instance, "assetInfos");

                currentInfos = assetInfos.GroupBy(x => x.Category)
                               .Select(x => new AssetCategoryInfo(x.Key, x.ToArray()))
                               .OrderBy(x => x.Category, new NaturalComparer())
                               .ToArray();

                asstInfoScrollView          = new AsstInfoScrollView();
                asstInfoScrollView.Contents = currentInfos;

                hashGuiStyle = new GUIStyle(EditorStyles.miniBoldLabel)
                {
                    alignment = TextAnchor.MiddleLeft,
                };

                totalAssetCountText = string.Format("Total Asset Count : {0}", assetInfos.Length);

                initialized = true;
            }

            DrawInspector();
        }
Example #2
0
        //----- property -----

        //----- method -----

        public override void OnInspectorGUI()
        {
            instance = target as AssetInfoManifest;

            if (!initialized)
            {
                assetInfos = Reflection.GetPrivateField <AssetInfoManifest, AssetInfo[]>(instance, "assetInfos");

                currentAssetInfos = assetInfos;

                asstInfoScrollView          = new AsstInfoScrollView();
                asstInfoScrollView.Contents = currentAssetInfos;

                totalAssetCountText = string.Format("Total Asset Count : {0}", assetInfos.Length);

                initialized = true;
            }

            DrawInspector();
        }
Example #3
0
        //----- property -----

        //----- method -----

        public override void OnInspectorGUI()
        {
            instance = target as AssetInfoManifest;

            if (!initialized)
            {
                var assetInfos = Reflection.GetPrivateField <AssetInfoManifest, AssetInfo[]>(instance, "assetInfos");

                currentInfos = assetInfos.GroupBy(x => x.GroupName)
                               .Select(x => new AssetGroupInfo(x.Key, x.ToArray()))
                               .ToArray();

                asstInfoScrollView          = new AsstInfoScrollView();
                asstInfoScrollView.Contents = currentInfos;

                totalAssetCountText = string.Format("Total Asset Count : {0}", assetInfos.Length);

                initialized = true;
            }

            DrawInspector();
        }