mirror of
https://github.com/vrm-c/UniVRM.git
synced 2026-08-20 17:45:22 -05:00
VRM10SpringsWindow
This commit is contained in:
8
Packages/VRM10/Editor/EditorWindow.meta
Normal file
8
Packages/VRM10/Editor/EditorWindow.meta
Normal file
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 4f5b0a2c7ad1b1f449f670ab5722ca26
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -6,8 +6,9 @@ using UnityEngine.UIElements;
|
||||
|
||||
namespace UniVRM10
|
||||
{
|
||||
public class VRM10SpringBoneWindow : EditorWindow
|
||||
public class VRM10SpringsWindow : EditorWindow
|
||||
{
|
||||
const string WINDOW_TITLE = "VRM10Springs";
|
||||
const string SpringsPath = "SpringBone.Springs";
|
||||
ObjectField m_target;
|
||||
SerializedObject serializedObject;
|
||||
@@ -33,10 +34,10 @@ namespace UniVRM10
|
||||
}
|
||||
}
|
||||
|
||||
public static VRM10SpringBoneWindow Show(Vrm10Instance vrm)
|
||||
public static VRM10SpringsWindow Show(Vrm10Instance vrm)
|
||||
{
|
||||
var wnd = GetWindow<VRM10SpringBoneWindow>();
|
||||
wnd.titleContent = new GUIContent("VRM10SpringBone");
|
||||
var wnd = GetWindow<VRM10SpringsWindow>();
|
||||
wnd.titleContent = new GUIContent(WINDOW_TITLE);
|
||||
wnd.Vrm = vrm;
|
||||
return wnd;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace UniVRM10
|
||||
SerializedProperty m_lookatTarget;
|
||||
SerializedProperty m_lookatTargetType;
|
||||
|
||||
VRM10SpringBoneWindow m_springBone;
|
||||
VRM10SpringsWindow m_springBone;
|
||||
|
||||
void OnEnable()
|
||||
{
|
||||
@@ -414,11 +414,11 @@ namespace UniVRM10
|
||||
VisualElement GUISpringBone()
|
||||
{
|
||||
var root = new VisualElement();
|
||||
// VRM10SpringBoneWindow
|
||||
// VRM10SpringsWindow
|
||||
var button = new Button { name = "SpringBone", text = "SpringBone" };
|
||||
button.clicked += () =>
|
||||
{
|
||||
m_springBone = VRM10SpringBoneWindow.Show(m_instance);
|
||||
m_springBone = VRM10SpringsWindow.Show(m_instance);
|
||||
};
|
||||
|
||||
List<(SpringBoneTab, VisualElement)> contents = new()
|
||||
|
||||
Reference in New Issue
Block a user