From eb84bb298d2b95aec7b2ae12cbf25ac64f25379a Mon Sep 17 00:00:00 2001 From: tylermurphy534 Date: Sun, 6 Nov 2022 15:12:42 -0500 Subject: move to self host --- .../GraphModules/VRCInstantiateNodeRegistry.cs | 48 ++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs (limited to 'VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs') diff --git a/VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs b/VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs new file mode 100644 index 00000000..d7a93e90 --- /dev/null +++ b/VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs @@ -0,0 +1,48 @@ +using System; +using System.Collections.Generic; +using VRC.Udon.Graph.Interfaces; +using VRC.Udon.Graph.Attributes; +using VRC.Udon.Graph.NodeRegistries; + +[assembly: UdonGraphNodeRegistry(typeof(VRCInstantiateNodeRegistry), "VRCInstantiateNodeRegistry")] +namespace VRC.Udon.Graph.NodeRegistries +{ + public class VRCInstantiateNodeRegistry : BaseNodeRegistry + { + protected override Dictionary NextRegistries => _nextRegistries; + private static readonly Dictionary _nextRegistries = new Dictionary(); + + protected override Dictionary NodeDefinitions => _nodeDefinitions; + + private static readonly Dictionary _nodeDefinitions = new Dictionary + { + { + "VRCInstantiate.__Instantiate__UnityEngineGameObject__UnityEngineGameObject", + new UdonNodeDefinition( + "VRChat Instantiate", + "VRCInstantiate.__Instantiate__UnityEngineGameObject__UnityEngineGameObject", + typeof(UnityEngine.Object), + new [] + { + new UdonNodeParameter + { + name = "original", + type = typeof(UnityEngine.GameObject), + parameterType = UdonNodeParameter.ParameterType.IN + }, + new UdonNodeParameter + { + name = "clone", + type = typeof(UnityEngine.GameObject), + parameterType = UdonNodeParameter.ParameterType.OUT + } + }, + new string[] { }, + new string[] { }, + new object[] { }, + true + ) + } + }; + } +} -- cgit v1.2.3-freya