diff options
| author | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-06 15:12:42 -0500 |
|---|---|---|
| committer | tylermurphy534 <tylermurphy534@gmail.com> | 2022-11-06 15:12:42 -0500 |
| commit | eb84bb298d2b95aec7b2ae12cbf25ac64f25379a (patch) | |
| tree | efd616a157df06ab661c6d56651853431ac6b08b /VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs | |
| download | unityprojects-eb84bb298d2b95aec7b2ae12cbf25ac64f25379a.tar.gz unityprojects-eb84bb298d2b95aec7b2ae12cbf25ac64f25379a.tar.bz2 unityprojects-eb84bb298d2b95aec7b2ae12cbf25ac64f25379a.zip | |
move to self host
Diffstat (limited to 'VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs')
| -rw-r--r-- | VRCSDK3Worlds/Assets/Udon/Editor/GraphModules/VRCInstantiateNodeRegistry.cs | 48 |
1 files changed, 48 insertions, 0 deletions
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<string, INodeRegistry> NextRegistries => _nextRegistries; + private static readonly Dictionary<string, INodeRegistry> _nextRegistries = new Dictionary<string, INodeRegistry>(); + + protected override Dictionary<string, UdonNodeDefinition> NodeDefinitions => _nodeDefinitions; + + private static readonly Dictionary<string, UdonNodeDefinition> _nodeDefinitions = new Dictionary<string, UdonNodeDefinition> + { + { + "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 + ) + } + }; + } +} |