mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-04-25 07:28:51 -05:00
remove not implemented
This commit is contained in:
parent
b0de928791
commit
504f6e8a47
|
|
@ -1,47 +0,0 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.EditorTools;
|
||||
|
||||
|
||||
[EditorTool("vrm-1.0/Constraint", typeof(UniVRM10.VRM10Controller))]
|
||||
class VRM10ConstraintEditorTool : EditorTool
|
||||
{
|
||||
static GUIContent s_cachedIcon;
|
||||
// NOTE: as were caching this, unity will serialize it between compiles! so if we want to test out new looks,
|
||||
// just return the new GUIContent and bypass the cache until were happy with the icon...
|
||||
public override GUIContent toolbarIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
if (s_cachedIcon == null)
|
||||
{
|
||||
s_cachedIcon = EditorGUIUtility.IconContent("RelativeJoint2D Icon", "|vrm-1.0 Constraint");
|
||||
}
|
||||
return s_cachedIcon;
|
||||
}
|
||||
}
|
||||
|
||||
// This is called for each window that your tool is active in. Put the functionality of your tool here.
|
||||
public override void OnToolGUI(EditorWindow window)
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
Vector3 position = Tools.handlePosition;
|
||||
|
||||
using (new Handles.DrawingScope(Color.green))
|
||||
{
|
||||
position = Handles.Slider(position, Vector3.right);
|
||||
}
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
Vector3 delta = position - Tools.handlePosition;
|
||||
|
||||
Undo.RecordObjects(Selection.transforms, "Move Platform");
|
||||
|
||||
foreach (var transform in Selection.transforms)
|
||||
transform.position += delta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2ba15b8483408784a85713de9f2a4120
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
|
|
@ -1,47 +0,0 @@
|
|||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEditor;
|
||||
using UnityEditor.EditorTools;
|
||||
|
||||
|
||||
[EditorTool("vrm-1.0/SpringBone", typeof(UniVRM10.VRM10Controller))]
|
||||
class VRM10SpringBoneEditorTool : EditorTool
|
||||
{
|
||||
static GUIContent s_cachedIcon;
|
||||
// NOTE: as were caching this, unity will serialize it between compiles! so if we want to test out new looks,
|
||||
// just return the new GUIContent and bypass the cache until were happy with the icon...
|
||||
public override GUIContent toolbarIcon
|
||||
{
|
||||
get
|
||||
{
|
||||
if (s_cachedIcon == null)
|
||||
{
|
||||
s_cachedIcon = EditorGUIUtility.IconContent("SpringJoint Icon", "|vrm-1.0 SpringBone");
|
||||
}
|
||||
return s_cachedIcon;
|
||||
}
|
||||
}
|
||||
|
||||
// This is called for each window that your tool is active in. Put the functionality of your tool here.
|
||||
public override void OnToolGUI(EditorWindow window)
|
||||
{
|
||||
EditorGUI.BeginChangeCheck();
|
||||
|
||||
Vector3 position = Tools.handlePosition;
|
||||
|
||||
using (new Handles.DrawingScope(Color.green))
|
||||
{
|
||||
position = Handles.Slider(position, Vector3.right);
|
||||
}
|
||||
|
||||
if (EditorGUI.EndChangeCheck())
|
||||
{
|
||||
Vector3 delta = position - Tools.handlePosition;
|
||||
|
||||
Undo.RecordObjects(Selection.transforms, "Move Platform");
|
||||
|
||||
foreach (var transform in Selection.transforms)
|
||||
transform.position += delta;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -1,11 +0,0 @@
|
|||
fileFormatVersion: 2
|
||||
guid: 2df947254482d5b4d9b07c268a72db5d
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Loading…
Reference in New Issue
Block a user