Added Unity project files
This commit is contained in:
@ -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
|
||||
)
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cac80b40f57c41d4b941dc5059271583
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user