diff --git a/README.md b/README.md index a48c4f2..d461abe 100644 --- a/README.md +++ b/README.md @@ -22,7 +22,7 @@ openupm add com.from2001.vrm-visualscripting-nodes ## Install Option B: via Unity package manager -### 1, Setup scoped registories +### 1. Setup scoped registories Open "Edit - Project Settings - Package Manager" on your Unity project. @@ -38,9 +38,9 @@ Scopes: `com.vrmc.vrm` `com.vrmc.vrmshaders` -![Project Settings](https://github.com/from2001/VRM_VisualScriptingNodes/assets/387880/682f1f2a-e061-4de5-a020-13d98ab2bf89) +![Project Settings](https://github.com/from2001/VRM_VisualScriptingNodes/assets/387880/595b1d91-4435-4195-9b6d-1ca6b43113ce) -### 2, Install VRM Visual Scripting Node Package with Package Manager +### 2. Install VRM Visual Scripting Node Package with Package Manager ![Package Manager](https://github.com/from2001/VRM_VisualScriptingNodes/assets/387880/2809ed0b-61a8-47d9-bdb0-24335ac60163) @@ -48,7 +48,7 @@ Scopes: This Visual Scripting Graph shows how to load VRM with URL and attach animation as well as getting meta information of the VRM model. LoadVRM node only works with Coroutine checked in On Start Event triger node. -Notice: Check "Coroutine" in "On Start Event" triger node. +Notice: Check "Coroutine" in the "On Start Event" triger node. ![Script Graph](https://github.com/from2001/VRM_VisualScriptingNodes/assets/387880/a0055284-7ad1-434c-80c3-f1f91c25881f) @@ -62,7 +62,7 @@ These samples can be imported. ![InstallSamples](https://github.com/from2001/VRM_VisualScriptingNodes/assets/387880/31c42fde-8b71-46e5-a4d5-a488015ca379) -## ToDO +## ToDo Implement features of [VRM-1.0 APIs](https://vrm-c.github.io/UniVRM/ja/vrm1/api_update.html#expression) @@ -75,3 +75,8 @@ Implement features of [VRM-1.0 APIs](https://vrm-c.github.io/UniVRM/ja/vrm1/api_ Add some useful features - Cache data in local storage + +## Repositories + +- [GitHub](https://github.com/from2001/com.from2001.vrm-visualscripting-nodes/) +- [OpenUPM](https://openupm.com/packages/com.from2001.vrm-visualscripting-nodes/) diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.asset b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.asset index ec6b848..14cea41 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.asset +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.asset @@ -14,7 +14,8 @@ MonoBehaviour: m_EditorClassIdentifier: _data: _json: '{"graph":{"variables":{"Kind":"Flow","collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Load - vrm","summary":null,"pan":{"x":0.0,"y":0.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-434.0,"y":-308.0},"guid":"9f1056f3-201d-469a-bfbd-eff19d835fca","$version":"A","$type":"Unity.VisualScripting.Start","$id":"9"},{"coroutine":false,"defaultValues":{},"position":{"x":-440.0,"y":-15.0},"guid":"185d2354-ce34-41fd-925f-e16903373eb3","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{"VRM - URL":{"$content":"","$type":"System.String"}},"position":{"x":-172.0,"y":-311.0},"guid":"93f123d7-c5c5-4312-ba18-a94d220a0d6e","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"13"},{"type":"System.String","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"defaultValues":{},"position":{"x":-432.0,"y":-150.0},"guid":"18a0de23-0d26-43e6-8c00-de1da5f336c5","$version":"A","$type":"Unity.VisualScripting.Literal","$id":"15"},{"sourceUnit":{"$ref":"9"},"sourceKey":"trigger","destinationUnit":{"$ref":"13"},"destinationKey":"inputTrigger","guid":"456a6e81-8bac-42ae-92fd-b67ab60b4553","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"15"},"sourceKey":"output","destinationUnit":{"$ref":"13"},"destinationKey":"VRM - URL","guid":"6b710d4d-574c-4634-acc9-673f55ddb86c","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' + vrm","summary":null,"pan":{"x":0.0,"y":0.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-432.0,"y":-322.0},"guid":"9f1056f3-201d-469a-bfbd-eff19d835fca","$version":"A","$type":"Unity.VisualScripting.Start","$id":"9"},{"coroutine":false,"defaultValues":{},"position":{"x":-427.0,"y":-16.0},"guid":"185d2354-ce34-41fd-925f-e16903373eb3","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{"VRM + URL":{"$content":"","$type":"System.String"}},"position":{"x":-157.0,"y":-319.0},"guid":"93f123d7-c5c5-4312-ba18-a94d220a0d6e","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"13"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"URL + of VRM model","$type":"System.String"},"object":null},"position":{"x":-393.0,"y":-175.0},"guid":"4f5cc3bb-c824-421a-9989-f6fee57e321c","$version":"A","$type":"Unity.VisualScripting.GetVariable","$id":"15"},{"sourceUnit":{"$ref":"9"},"sourceKey":"trigger","destinationUnit":{"$ref":"13"},"destinationKey":"inputTrigger","guid":"456a6e81-8bac-42ae-92fd-b67ab60b4553","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"15"},"sourceKey":"value","destinationUnit":{"$ref":"13"},"destinationKey":"VRM + URL","guid":"7bb01abd-5f40-4310-9f0f-73aa8bf9468b","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' _objectReferences: [] diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.unity b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.unity index a00804d..45850f9 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.unity +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/1. Load vrm.unity @@ -230,7 +230,9 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: _data: - _json: '{"declarations":{"Kind":"Object","collection":{"$content":[],"$version":"A"},"$version":"A"}}' + _json: '{"declarations":{"Kind":"Object","collection":{"$content":[{"name":"URL + of VRM model","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"typeHandle":{"Identification":"System.String, + mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","$version":"A"},"$version":"A"}],"$version":"A"},"$version":"A"}}' _objectReferences: [] --- !u!4 &1215055970 Transform: @@ -332,13 +334,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1326309104} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &1670227871 GameObject: m_ObjectHideFlags: 0 diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.asset b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.asset index d0d4058..fed38a2 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.asset +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.asset @@ -13,10 +13,13 @@ MonoBehaviour: m_Name: 2. Attach animation m_EditorClassIdentifier: _data: - _json: '{"graph":{"variables":{"Kind":"Flow","collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Attach - sanimation","summary":null,"pan":{"x":268.0,"y":173.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-204.0,"y":-144.0},"guid":"79ca0710-d064-4ac8-a75a-19512ec01b08","$version":"A","$type":"Unity.VisualScripting.Start","$id":"9"},{"coroutine":false,"defaultValues":{},"position":{"x":-202.0,"y":165.0},"guid":"7b1ffaee-b4d2-4a4f-892b-853bfa503275","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{"VRM - URL":{"$content":"","$type":"System.String"}},"position":{"x":75.0,"y":-139.0},"guid":"11f1e39e-9ee2-4393-ba3b-b1edde89fd1e","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"13"},{"type":"System.String","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"defaultValues":{},"position":{"x":-178.0,"y":10.0},"guid":"d3fef7db-bf04-4a4a-ba2f-ed153a2d48ae","$version":"A","$type":"Unity.VisualScripting.Literal","$id":"15"},{"chainable":false,"member":{"name":"runtimeAnimatorController","parameterTypes":null,"targetType":"UnityEngine.Animator","targetTypeName":"UnityEngine.Animator","$version":"A"},"defaultValues":{"target":null,"input":{"$content":0,"$type":"UnityEngine.Object"}},"position":{"x":379.0,"y":-140.0},"guid":"c17ef876-f0b1-4c36-8574-f235bad0020d","$version":"A","$type":"Unity.VisualScripting.SetMember","$id":"17"},{"sourceUnit":{"$ref":"13"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"17"},"destinationKey":"assign","guid":"ec425642-8c60-42ac-b9e9-44bfc4820a26","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"trigger","destinationUnit":{"$ref":"13"},"destinationKey":"inputTrigger","guid":"8c1b7ba4-1412-4adb-9393-6d4494e901cc","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"15"},"sourceKey":"output","destinationUnit":{"$ref":"13"},"destinationKey":"VRM - URL","guid":"ed02d1c9-cc88-4f36-b775-bf19be926b59","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"13"},"sourceKey":"Game - Object","destinationUnit":{"$ref":"17"},"destinationKey":"target","guid":"f72841da-0670-4109-84de-7546ab7b379a","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' + _json: '{"graph":{"variables":{"Kind":"Flow","collection":{"$content":[{"name":"URL + of VRM model","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"typeHandle":{"Identification":"System.String, + mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","$version":"A"},"$version":"A"}],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Attach + sanimation","summary":null,"pan":{"x":192.0,"y":141.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-204.0,"y":-144.0},"guid":"79ca0710-d064-4ac8-a75a-19512ec01b08","$version":"A","$type":"Unity.VisualScripting.Start","$id":"10"},{"coroutine":false,"defaultValues":{},"position":{"x":-202.0,"y":165.0},"guid":"7b1ffaee-b4d2-4a4f-892b-853bfa503275","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{"VRM + URL":{"$content":"","$type":"System.String"}},"position":{"x":75.0,"y":-139.0},"guid":"11f1e39e-9ee2-4393-ba3b-b1edde89fd1e","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"14"},{"chainable":false,"member":{"name":"runtimeAnimatorController","parameterTypes":null,"targetType":"UnityEngine.Animator","targetTypeName":"UnityEngine.Animator","$version":"A"},"defaultValues":{"target":null,"input":{"$content":0,"$type":"UnityEngine.Object"}},"position":{"x":379.0,"y":-140.0},"guid":"c17ef876-f0b1-4c36-8574-f235bad0020d","$version":"A","$type":"Unity.VisualScripting.SetMember","$id":"16"},{"specifyFallback":false,"kind":"Graph","defaultValues":{"name":{"$content":"URL + of VRM model","$type":"System.String"}},"position":{"x":-134.0,"y":53.0},"guid":"82522815-6591-4ace-aa6e-1276e4435cda","$version":"A","$type":"Unity.VisualScripting.GetVariable","$id":"19"},{"sourceUnit":{"$ref":"14"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"16"},"destinationKey":"assign","guid":"ec425642-8c60-42ac-b9e9-44bfc4820a26","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"10"},"sourceKey":"trigger","destinationUnit":{"$ref":"14"},"destinationKey":"inputTrigger","guid":"8c1b7ba4-1412-4adb-9393-6d4494e901cc","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"14"},"sourceKey":"Game + Object","destinationUnit":{"$ref":"16"},"destinationKey":"target","guid":"f72841da-0670-4109-84de-7546ab7b379a","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"value","destinationUnit":{"$ref":"14"},"destinationKey":"VRM + URL","guid":"39a6b6cd-2bfa-4db0-bbd6-16405d931bd3","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' _objectReferences: - {fileID: 9100000, guid: d414c9f2f23514b6ea3b654f58a8c917, type: 2} diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.unity b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.unity index 180c34e..5f630f9 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.unity +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/2. Attach animation.unity @@ -302,13 +302,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 498831428} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1 &576166354 GameObject: m_ObjectHideFlags: 0 @@ -369,6 +369,37 @@ Transform: m_Children: [] m_Father: {fileID: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} +--- !u!1 &1416422916 +GameObject: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + serializedVersion: 6 + m_Component: + - component: {fileID: 1416422917} + m_Layer: 0 + m_Name: UniGLTF UnityThreadScheduler + m_TagString: Untagged + m_Icon: {fileID: 0} + m_NavMeshLayer: 0 + m_StaticEditorFlags: 0 + m_IsActive: 1 +--- !u!4 &1416422917 +Transform: + m_ObjectHideFlags: 0 + m_CorrespondingSourceObject: {fileID: 0} + m_PrefabInstance: {fileID: 0} + m_PrefabAsset: {fileID: 0} + m_GameObject: {fileID: 1416422916} + serializedVersion: 2 + m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} + m_LocalPosition: {x: 0, y: 0, z: 0} + m_LocalScale: {x: 1, y: 1, z: 1} + m_ConstrainProportionsScale: 0 + m_Children: [] + m_Father: {fileID: 0} + m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} --- !u!1 &2032661176 GameObject: m_ObjectHideFlags: 0 @@ -441,3 +472,4 @@ SceneRoots: - {fileID: 41731451} - {fileID: 2032661179} - {fileID: 576166357} + - {fileID: 1416422917} diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.asset b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.asset index a0d48a6..2f964d4 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.asset +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.asset @@ -14,8 +14,9 @@ MonoBehaviour: m_EditorClassIdentifier: _data: _json: '{"graph":{"variables":{"Kind":"Flow","collection":{"$content":[],"$version":"A"},"$version":"A"},"controlInputDefinitions":[],"controlOutputDefinitions":[],"valueInputDefinitions":[],"valueOutputDefinitions":[],"title":"Get - meta information","summary":null,"pan":{"x":490.0,"y":16.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-753.0,"y":-317.0},"guid":"bf182d87-73df-4983-bd5c-ee39bd6ba576","$version":"A","$type":"Unity.VisualScripting.Start","$id":"9"},{"coroutine":false,"defaultValues":{},"position":{"x":-751.0,"y":-139.0},"guid":"f3adb456-d37a-4993-93e6-d18dd918ea64","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{"VRM - URL":{"$content":"","$type":"System.String"}},"position":{"x":-478.0,"y":-328.0},"guid":"2ba3d4c1-1e92-433a-92ae-2a987bc244a5","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"13"},{"type":"System.String","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"defaultValues":{},"position":{"x":-789.0,"y":-468.0},"guid":"beb3179c-3e7c-4909-bd02-ffefd2fe1de6","$version":"A","$type":"Unity.VisualScripting.Literal","$id":"15"},{"defaultValues":{},"position":{"x":-201.0,"y":-330.0},"guid":"6813a6d6-d267-47f3-abb4-9d423d6cccef","$version":"A","$type":"VrmVisualScriptingNodes.GetMetaInformation","$id":"17"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":208.0,"y":-328.0},"guid":"76d880c0-dd5c-4f0e-af86-a27fcf7ebb98","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"19"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":391.0,"y":-328.0},"guid":"08e68d54-dc4d-4271-b035-7c2a21f6759c","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"23"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":560.0,"y":-329.0},"guid":"56f3f6cc-3202-4b51-a01e-431ab2087a85","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"27"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":899.0,"y":-329.0},"guid":"76234f2e-c8d5-4e39-b5c3-25381b00ee26","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"31"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":727.0,"y":-331.0},"guid":"ea056329-94bf-46d0-86c8-c8a9e788b8a0","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"35"},{"defaultValues":{"index":{"$content":0,"$type":"System.Int32"}},"position":{"x":202.0,"y":-188.0},"guid":"7daa74bc-57a1-4ca0-ae74-542c8bad2f13","$version":"A","$type":"Unity.VisualScripting.GetListItem","$id":"39"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":1074.0,"y":-328.0},"guid":"6e1612fa-22dc-4770-9b0f-af6541016fa2","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"41"},{"sourceUnit":{"$ref":"9"},"sourceKey":"trigger","destinationUnit":{"$ref":"13"},"destinationKey":"inputTrigger","guid":"a0780f3b-c020-411b-b00e-c53af51fe1c3","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"13"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"17"},"destinationKey":"inputTrigger","guid":"244894fd-3115-47b9-9961-8d31299a8f26","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"19"},"destinationKey":"enter","guid":"4cbc6acd-5ce2-40d1-b843-2ffd3afe926e","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"exit","destinationUnit":{"$ref":"23"},"destinationKey":"enter","guid":"1de99448-a05a-4578-94bd-f1fe97bcf397","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"23"},"sourceKey":"exit","destinationUnit":{"$ref":"27"},"destinationKey":"enter","guid":"0c3d7d73-cfe1-4b03-bcb3-fd6d27b59702","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"27"},"sourceKey":"exit","destinationUnit":{"$ref":"35"},"destinationKey":"enter","guid":"ccb90073-daf4-4f59-af9b-03a0e37b45e6","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"35"},"sourceKey":"exit","destinationUnit":{"$ref":"31"},"destinationKey":"enter","guid":"beea3a46-c0da-4f91-802f-8474bf309358","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"31"},"sourceKey":"exit","destinationUnit":{"$ref":"41"},"destinationKey":"enter","guid":"7f9c7d39-216e-4da1-b271-30113fa36e11","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"15"},"sourceKey":"output","destinationUnit":{"$ref":"13"},"destinationKey":"VRM - URL","guid":"8b8bd397-b8f1-4430-9abe-1f1dd2c10f44","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"13"},"sourceKey":"Game - Object","destinationUnit":{"$ref":"17"},"destinationKey":"VRM GameObject","guid":"9ffdb45b-a101-40f0-bc1a-9956745ab4b8","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Name","destinationUnit":{"$ref":"19"},"destinationKey":"%message","guid":"9a82841d-faae-49d6-b99b-951fbcbf5b5a","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Version","destinationUnit":{"$ref":"23"},"destinationKey":"%message","guid":"29f879fb-61c0-491b-925e-309dccbb39b9","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Copyright","destinationUnit":{"$ref":"27"},"destinationKey":"%message","guid":"5b5cb220-7a8a-4665-8322-0738b05f1d53","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Authors","destinationUnit":{"$ref":"39"},"destinationKey":"list","guid":"616ac0d9-41a5-41c2-bf9f-47522f936f48","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"39"},"sourceKey":"item","destinationUnit":{"$ref":"35"},"destinationKey":"%message","guid":"bf1e9384-4f7c-47e5-8f3a-c12aba5057da","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"AvatarPermission","destinationUnit":{"$ref":"31"},"destinationKey":"%message","guid":"e5b26115-76c5-4449-8906-1975adec8d9c","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"ViolentUssage","destinationUnit":{"$ref":"41"},"destinationKey":"%message","guid":"490f86f8-5b63-4267-9888-a8199c806bae","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' + meta information","summary":null,"pan":{"x":-467.0,"y":-134.0},"zoom":1.0,"elements":[{"coroutine":true,"defaultValues":{},"position":{"x":-826.0,"y":-382.0},"guid":"bf182d87-73df-4983-bd5c-ee39bd6ba576","$version":"A","$type":"Unity.VisualScripting.Start","$id":"9"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":208.0,"y":-328.0},"guid":"76d880c0-dd5c-4f0e-af86-a27fcf7ebb98","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"11"},{"coroutine":false,"defaultValues":{},"position":{"x":-840.0,"y":-130.0},"guid":"f3adb456-d37a-4993-93e6-d18dd918ea64","$version":"A","$type":"Unity.VisualScripting.Update"},{"defaultValues":{},"position":{"x":-201.0,"y":-330.0},"guid":"6813a6d6-d267-47f3-abb4-9d423d6cccef","$version":"A","$type":"VrmVisualScriptingNodes.GetMetaInformation","$id":"17"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":727.0,"y":-331.0},"guid":"ea056329-94bf-46d0-86c8-c8a9e788b8a0","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"19"},{"defaultValues":{"VRM + URL":{"$content":"","$type":"System.String"}},"position":{"x":-478.0,"y":-328.0},"guid":"2ba3d4c1-1e92-433a-92ae-2a987bc244a5","$version":"A","$type":"VrmVisualScriptingNodes.LoadVRM","$id":"23"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":560.0,"y":-329.0},"guid":"56f3f6cc-3202-4b51-a01e-431ab2087a85","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"25"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":899.0,"y":-329.0},"guid":"76234f2e-c8d5-4e39-b5c3-25381b00ee26","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"29"},{"defaultValues":{"index":{"$content":0,"$type":"System.Int32"}},"position":{"x":202.0,"y":-188.0},"guid":"7daa74bc-57a1-4ca0-ae74-542c8bad2f13","$version":"A","$type":"Unity.VisualScripting.GetListItem","$id":"33"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":1074.0,"y":-328.0},"guid":"6e1612fa-22dc-4770-9b0f-af6541016fa2","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"35"},{"chainable":false,"parameterNames":["message"],"member":{"name":"Log","parameterTypes":["System.Object"],"targetType":"UnityEngine.Debug","targetTypeName":"UnityEngine.Debug","$version":"A"},"defaultValues":{},"position":{"x":391.0,"y":-328.0},"guid":"08e68d54-dc4d-4271-b035-7c2a21f6759c","$version":"A","$type":"Unity.VisualScripting.InvokeMember","$id":"39"},{"specifyFallback":false,"kind":"Object","defaultValues":{"name":{"$content":"URL + of VRM model","$type":"System.String"},"object":null},"position":{"x":-754.0,"y":-267.0},"guid":"aaf53ed1-b625-4dc6-b436-e12833e5e7e7","$version":"A","$type":"Unity.VisualScripting.GetVariable","$id":"43"},{"sourceUnit":{"$ref":"25"},"sourceKey":"exit","destinationUnit":{"$ref":"19"},"destinationKey":"enter","guid":"ccb90073-daf4-4f59-af9b-03a0e37b45e6","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"9"},"sourceKey":"trigger","destinationUnit":{"$ref":"23"},"destinationKey":"inputTrigger","guid":"a0780f3b-c020-411b-b00e-c53af51fe1c3","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"23"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"17"},"destinationKey":"inputTrigger","guid":"244894fd-3115-47b9-9961-8d31299a8f26","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"11"},"sourceKey":"exit","destinationUnit":{"$ref":"39"},"destinationKey":"enter","guid":"1de99448-a05a-4578-94bd-f1fe97bcf397","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"39"},"sourceKey":"exit","destinationUnit":{"$ref":"25"},"destinationKey":"enter","guid":"0c3d7d73-cfe1-4b03-bcb3-fd6d27b59702","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"19"},"sourceKey":"exit","destinationUnit":{"$ref":"29"},"destinationKey":"enter","guid":"beea3a46-c0da-4f91-802f-8474bf309358","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"outputTrigger","destinationUnit":{"$ref":"11"},"destinationKey":"enter","guid":"4cbc6acd-5ce2-40d1-b843-2ffd3afe926e","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"29"},"sourceKey":"exit","destinationUnit":{"$ref":"35"},"destinationKey":"enter","guid":"7f9c7d39-216e-4da1-b271-30113fa36e11","$type":"Unity.VisualScripting.ControlConnection"},{"sourceUnit":{"$ref":"33"},"sourceKey":"item","destinationUnit":{"$ref":"19"},"destinationKey":"%message","guid":"bf1e9384-4f7c-47e5-8f3a-c12aba5057da","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Name","destinationUnit":{"$ref":"11"},"destinationKey":"%message","guid":"9a82841d-faae-49d6-b99b-951fbcbf5b5a","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Version","destinationUnit":{"$ref":"39"},"destinationKey":"%message","guid":"29f879fb-61c0-491b-925e-309dccbb39b9","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Copyright","destinationUnit":{"$ref":"25"},"destinationKey":"%message","guid":"5b5cb220-7a8a-4665-8322-0738b05f1d53","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"Authors","destinationUnit":{"$ref":"33"},"destinationKey":"list","guid":"616ac0d9-41a5-41c2-bf9f-47522f936f48","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"23"},"sourceKey":"Game + Object","destinationUnit":{"$ref":"17"},"destinationKey":"VRM GameObject","guid":"9ffdb45b-a101-40f0-bc1a-9956745ab4b8","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"AvatarPermission","destinationUnit":{"$ref":"29"},"destinationKey":"%message","guid":"e5b26115-76c5-4449-8906-1975adec8d9c","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"17"},"sourceKey":"ViolentUssage","destinationUnit":{"$ref":"35"},"destinationKey":"%message","guid":"490f86f8-5b63-4267-9888-a8199c806bae","$type":"Unity.VisualScripting.ValueConnection"},{"sourceUnit":{"$ref":"43"},"sourceKey":"value","destinationUnit":{"$ref":"23"},"destinationKey":"VRM + URL","guid":"8e9cd716-67eb-4e4c-8fa1-57ef18741dba","$type":"Unity.VisualScripting.ValueConnection"}],"$version":"A"}}' _objectReferences: [] diff --git a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.unity b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.unity index 9c2d8f2..45df177 100644 --- a/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.unity +++ b/VRM_VisualScriptingNodes/Assets/Samples_Dev/Sample1/3. Get meta information.unity @@ -304,7 +304,7 @@ Transform: m_GameObject: {fileID: 1389659146} serializedVersion: 2 m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: -0.124786854, y: 0.4484353, z: -0.18909693} + m_LocalPosition: {x: 0, y: 0, z: 0} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] @@ -339,7 +339,9 @@ MonoBehaviour: m_Name: m_EditorClassIdentifier: _data: - _json: '{"declarations":{"Kind":"Object","collection":{"$content":[],"$version":"A"},"$version":"A"}}' + _json: '{"declarations":{"Kind":"Object","collection":{"$content":[{"name":"URL + of VRM model","value":{"$content":"https://test.psychic-vr-lab.com/files/STYLY-Chan-A.vrm","$type":"System.String"},"typeHandle":{"Identification":"System.String, + mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089","$version":"A"},"$version":"A"}],"$version":"A"},"$version":"A"}}' _objectReferences: [] --- !u!1 &1898800704 GameObject: @@ -426,13 +428,13 @@ Transform: m_PrefabAsset: {fileID: 0} m_GameObject: {fileID: 1898800704} serializedVersion: 2 - m_LocalRotation: {x: 0, y: 0, z: 0, w: 1} - m_LocalPosition: {x: 0, y: 1, z: -10} + m_LocalRotation: {x: 0, y: 1, z: 0, w: 0} + m_LocalPosition: {x: 0, y: 1, z: 1} m_LocalScale: {x: 1, y: 1, z: 1} m_ConstrainProportionsScale: 0 m_Children: [] m_Father: {fileID: 0} - m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} + m_LocalEulerAnglesHint: {x: 0, y: 180, z: 0} --- !u!1660057539 &9223372036854775807 SceneRoots: m_ObjectHideFlags: 0 diff --git a/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/Runtime/Utils/Utils.cs b/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/Runtime/Utils/Utils.cs index 402a3e2..7a06f6f 100644 --- a/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/Runtime/Utils/Utils.cs +++ b/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/Runtime/Utils/Utils.cs @@ -3,7 +3,13 @@ using UnityEngine.Networking; using System.Runtime.CompilerServices; -namespace VrmVisualScriptingNodes.Utils +namespace from2001 { - + public class Utils : MonoBehaviour + { + static int addTest(int a, int b) + { + return a + b; + } + } } \ No newline at end of file diff --git a/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/package.json b/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/package.json index 9d7e751..c35fb57 100644 --- a/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/package.json +++ b/VRM_VisualScriptingNodes/Packages/com.from2001.vrm-visualscripting-nodes/package.json @@ -1,6 +1,6 @@ { "name": "com.from2001.vrm-visualscripting-nodes", - "version": "0.1.2", + "version": "0.1.3", "displayName": "VRM Visual Scripting Nodes", "description": "Unity Visual Scripting node library for VRM", "unity": "2021.3",