您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
31 行
635 B
31 行
635 B
using UnityEngine;
|
|
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEditor;
|
|
|
|
namespace JBooth.VertexPainterPro
|
|
{
|
|
[System.Serializable]
|
|
public class SaveMeshes : IVertexPainterUtility
|
|
{
|
|
public string GetName()
|
|
{
|
|
return "Save Meshes";
|
|
}
|
|
|
|
public void OnGUI(PaintJob[] jobs)
|
|
{
|
|
EditorGUILayout.BeginHorizontal();
|
|
EditorGUILayout.Space();
|
|
if (GUILayout.Button("Save Mesh"))
|
|
{
|
|
VertexPainterUtilities.SaveMesh(jobs);
|
|
}
|
|
|
|
EditorGUILayout.Space();
|
|
EditorGUILayout.EndHorizontal();
|
|
}
|
|
|
|
|
|
}
|
|
}
|