先修复一下,错误的场景 删除不必要的钓场资产 修复into场景 update:更新meta文件,修复报错 update:修复资源 修复第一章节建造 修复建造第三章 update:删除多余内容 update:更新README.md update:还原图标 update:更新README update:更新配置
45 lines
1.5 KiB
C#
45 lines
1.5 KiB
C#
//----------------------------------------------
|
|
// MeshBaker
|
|
// Copyright © 2011-2012 Ian Deane
|
|
//----------------------------------------------
|
|
using UnityEngine;
|
|
using System.Collections;
|
|
using System.IO;
|
|
using System;
|
|
using System.Collections.Specialized;
|
|
using System.Collections.Generic;
|
|
using System.Text.RegularExpressions;
|
|
|
|
using DigitalOpus.MB.Core;
|
|
using UnityEditor;
|
|
|
|
namespace DigitalOpus.MB.MBEditor
|
|
{
|
|
[CustomEditor(typeof(MB3_MeshCombinerSettings))]
|
|
public class MB3_MeshBakerSettingsAssetEditor : Editor
|
|
{
|
|
|
|
private SerializedObject settingsSerializedObj;
|
|
private SerializedProperty mbSettings;
|
|
private MB_MeshBakerSettingsEditor meshBakerSettingsEditor;
|
|
|
|
public void OnEnable()
|
|
{
|
|
settingsSerializedObj = new SerializedObject(target);
|
|
mbSettings = settingsSerializedObj.FindProperty("data");
|
|
meshBakerSettingsEditor = new MB_MeshBakerSettingsEditor();
|
|
meshBakerSettingsEditor.OnEnable(mbSettings);
|
|
}
|
|
|
|
public override void OnInspectorGUI()
|
|
{
|
|
MB3_MeshCombinerSettings tbg = (MB3_MeshCombinerSettings)target;
|
|
settingsSerializedObj.Update();
|
|
EditorGUILayout.HelpBox("This asset can be shared by many Mesh Bakers and MultiMeshBakers. Drag this " +
|
|
" asset to the 'Use Shared Settings' field of any Mesh Baker", MessageType.Info);
|
|
meshBakerSettingsEditor.DrawGUI(tbg.data, true, false);
|
|
settingsSerializedObj.ApplyModifiedProperties();
|
|
}
|
|
}
|
|
}
|