remove not implemented

This commit is contained in:
ousttrue 2021-08-17 21:15:01 +09:00
parent b0de928791
commit 504f6e8a47
4 changed files with 0 additions and 116 deletions

View File

@ -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;
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 2ba15b8483408784a85713de9f2a4120
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -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;
}
}
}

View File

@ -1,11 +0,0 @@
fileFormatVersion: 2
guid: 2df947254482d5b4d9b07c268a72db5d
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: