Array CopyTo is missing target and index as input
Foorack
UDONSDK-2019.12.22.12.32_Public
This seems to apply to all [].CopyTo nodes. It should accept a sourceArray, targetArray and index, but currently only accepts an "instance".
Log In
Hitori Ou
I ended up with 999+ errors in the Console after just a min of scrolling the nodegraph.
naqtn
Additional info: When adding CopyTo node, MissingMethodException happens. I guess Udon SDK fails to build internal structure and it lacks connection points for arguments.
MissingMethodException: Constructor on type 'System.Array' not found.
System.RuntimeType.CreateInstanceImpl (System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes, System.Threading.StackCrawlMark& stackMark) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Activator.CreateInstance (System.Type type, System.Reflection.BindingFlags bindingAttr, System.Reflection.Binder binder, System.Object[] args, System.Globalization.CultureInfo culture, System.Object[] activationAttributes) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
System.Activator.CreateInstance (System.Type type, System.Object[] args) (at <e1319b7195c343e79b385cd3aa43f5dc>:0)
UnityEditor.Graphs.Property.ConvertToListOrArray () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Property.cs:294)
UnityEditor.Graphs.Property.get_value () (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/Property.cs:237)
UnityEditor.Graphs.GraphGUI.IsSlotActive (UnityEditor.Graphs.Slot slot) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/GUI/GraphGUI.cs:855)
UnityEditor.Graphs.GraphGUI.DoSlot (System.Int32 id, UnityEngine.Rect position, System.String title, UnityEditor.Graphs.Slot slot, System.Boolean allowStartDrag, System.Boolean allowEndDrag, System.Boolean allowMultiple, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/GUI/GraphGUI.cs:840)
UnityEditor.Graphs.GraphGUI.LayoutSlot (UnityEditor.Graphs.Slot s, System.String title, System.Boolean allowStartDrag, System.Boolean allowEndDrag, System.Boolean allowMultiple, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Editor/Graphs/UnityEditor.Graphs/GUI/GraphGUI.cs:809)
VRC.Udon.Editor.UdonGraphGUI.NodeGUI (UnityEditor.Graphs.Node node) (at Assets/Udon/Editor/ProgramSources/UdonGraph/UdonGraphGUI.cs:563)
VRC.Udon.Editor.UdonGraphGUI+<>c__DisplayClass14_0.<OnGraphGUI>b__5 (System.Int32 <p0>) (at Assets/Udon/Editor/ProgramSources/UdonGraph/UdonGraphGUI.cs:110)
UnityEngine.GUILayout+LayoutedWindow.DoWindow (System.Int32 windowID) (at C:/buildslave/unity/build/Modules/IMGUI/GUILayout.cs:442)
UnityEngine.GUI.CallWindowDelegate (UnityEngine.GUI+WindowFunction func, System.Int32 id, System.Int32 instanceID, UnityEngine.GUISkin _skin, System.Int32 forceRect, System.Single width, System.Single height, UnityEngine.GUIStyle style) (at C:/buildslave/unity/build/Modules/IMGUI/GUI.cs:1635)
UnityEditor.EditorWindow:EndWindows()
VRC.Udon.Editor.UdonGraphGUI:OnGraphGUI() (at Assets/Udon/Editor/ProgramSources/UdonGraph/UdonGraphGUI.cs:150)
VRC.Udon.Editor.UdonGraphWindow:DrawGraph() (at Assets/Udon/Editor/ProgramSources/UdonGraph/UdonGraphWindow.cs:178)
VRC.Udon.Editor.UdonGraphWindow:OnGUI() (at Assets/Udon/Editor/ProgramSources/UdonGraph/UdonGraphWindow.cs:148)
UnityEngine.GUIUtility:ProcessEvent(Int32, IntPtr)