示例#1
0
        protected override void CustomOnGUI()
        {
            EditorUIHelper.Space();
            EditorUIHelper.LabelField("只有代码相关的会重新序列化,材质球不会,但是材质球也会更新serializedVersion!");

            EditorUIHelper.Space();
            EditorUIHelper.Button("更新被依赖的资源", UpdateSelectionsDependencies);

            EditorUIHelper.Space();
            EditorUIHelper.Button("更新依赖的资源", UpdateSelectionsRevertDependencies);

            EditorUIHelper.Space();
            EditorUIHelper.Button("更新选中的文件夹", UpdateSelectionsFolder);
        }
示例#2
0
        protected override void CustomOnGUI()
        {
            _mat         = EditorUIHelper.ObjectField <Material>(_mat, "替换材质球");
            _addMat      = EditorUIHelper.ObjectField <Material>(_addMat, "替换材质球");
            _lod         = EditorUIHelper.IntSlider("LOD", _lod, 0, 5);
            _splitCount  = EditorUIHelper.IntSlider("分割块数,4^n", _splitCount, 0, 5);
            _indexFormat = EditorUIHelper.EnumPopup <IndexFormat>(_indexFormat);

            EditorUIHelper.Space();
            EditorUIHelper.LabelField("使用 UInt16,1025的高度图设置,得分割3次才能满足顶点数限制");

            EditorUIHelper.Space();
            EditorUIHelper.Button("ExportSplatmaps", ExportSplatmaps);

            EditorUIHelper.Space();
            EditorUIHelper.Button("Terrain2Mesh", ConvertTerrain2Mesh);

            EditorUIHelper.Space();
            EditorUIHelper.Button("SaveMeshes", SaveMeshes);
        }
示例#3
0
        protected override void CustomOnGUI()
        {
            _showType = EditorUIHelper.EnumPopup <ShowType>(_showType, "显示:");

            EditorUIHelper.Space();
            var dict = _showType == ShowType.All ? MonoFieldDict : UnSafeMonoFieldDict;

            _scrool = EditorUIHelper.BeginScrollView(_scrool);
            {
                foreach (var keyValue in dict)
                {
                    EditorUIHelper.Space();
                    EditorUIHelper.ObjectField(keyValue.Key);
                    foreach (var fieldInfo in keyValue.Value)
                    {
                        EditorUIHelper.LabelField(fieldInfo.Name);
                    }
                }
            }
            EditorUIHelper.EndScrollView();
        }