mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-05-20 09:47:56 -05:00
未使用削除
This commit is contained in:
parent
05f41f2aac
commit
95e6c6d65c
|
|
@ -13,7 +13,6 @@ namespace UniGLTF.MeshUtility
|
|||
{
|
||||
MeshSeparator,
|
||||
MeshIntegrator,
|
||||
// StaticMeshIntegrator,
|
||||
BoneMeshEraser,
|
||||
}
|
||||
private Tabs _tab;
|
||||
|
|
@ -89,12 +88,6 @@ namespace UniGLTF.MeshUtility
|
|||
processed = TabMeshIntegrator.OnGUI(_exportTarget);
|
||||
break;
|
||||
|
||||
// MeshIntegrator と機能が重複しているのと正常に動作しなかった
|
||||
// case Tabs.StaticMeshIntegrator:
|
||||
// EditorGUILayout.HelpBox(MeshProcessingMessages.STATIC_MESH_INTEGRATOR.Msg(), MessageType.Info);
|
||||
// processed = TabStaticMeshIntegrator.OnGUI(_exportTarget);
|
||||
// break;
|
||||
|
||||
case Tabs.BoneMeshEraser:
|
||||
EditorGUILayout.HelpBox(MeshProcessingMessages.BONE_MESH_ERASER.Msg(), MessageType.Info);
|
||||
if (_boneMeshEraserEditor)
|
||||
|
|
|
|||
|
|
@ -1,45 +0,0 @@
|
|||
using UniGLTF.M17N;
|
||||
using UnityEditor;
|
||||
using UnityEngine;
|
||||
|
||||
namespace UniGLTF.MeshUtility
|
||||
{
|
||||
public static class TabStaticMeshIntegrator
|
||||
{
|
||||
public static bool OnGUI(GameObject _exportTarget)
|
||||
{
|
||||
var _isInvokeSuccess = false;
|
||||
GUILayout.BeginVertical();
|
||||
{
|
||||
GUILayout.BeginHorizontal();
|
||||
GUILayout.FlexibleSpace();
|
||||
if (GUILayout.Button("Process", GUILayout.MinWidth(100)))
|
||||
{
|
||||
_isInvokeSuccess = TabStaticMeshIntegrator.Execute(_exportTarget);
|
||||
}
|
||||
GUILayout.EndHorizontal();
|
||||
}
|
||||
GUILayout.EndVertical();
|
||||
return _isInvokeSuccess;
|
||||
}
|
||||
|
||||
static bool Execute(GameObject _exportTarget)
|
||||
{
|
||||
if (_exportTarget == null)
|
||||
{
|
||||
EditorUtility.DisplayDialog("Failed", MeshProcessingMessages.NO_GAMEOBJECT_SELECTED.Msg(), "ok");
|
||||
return false;
|
||||
}
|
||||
var go = _exportTarget;
|
||||
|
||||
if (go.GetComponentsInChildren<MeshFilter>().Length == 0)
|
||||
{
|
||||
EditorUtility.DisplayDialog("Failed", MeshProcessingMessages.NO_STATIC_MESH.Msg(), "ok");
|
||||
return false;
|
||||
}
|
||||
|
||||
MeshUtility.IntegrateSelected(go);
|
||||
return true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 9701e1f6aaed8d14283243a7a50be2df
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user