From db6b801be91c800acdfd9ea5745208755857440a Mon Sep 17 00:00:00 2001 From: "tom.bequin" Date: Thu, 23 Dec 2021 15:41:23 +0100 Subject: [PATCH] Made SetNodeName method overridable in GameObjectInstantiator class --- Runtime/Scripts/GameObjectInstantiator.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Runtime/Scripts/GameObjectInstantiator.cs b/Runtime/Scripts/GameObjectInstantiator.cs index 9b912861..3c0c7f70 100644 --- a/Runtime/Scripts/GameObjectInstantiator.cs +++ b/Runtime/Scripts/GameObjectInstantiator.cs @@ -80,7 +80,7 @@ public void SetParent(uint nodeIndex, uint parentIndex) { nodes[nodeIndex].transform.SetParent(nodes[parentIndex].transform,false); } - public void SetNodeName(uint nodeIndex, string name) { + public virtual void SetNodeName(uint nodeIndex, string name) { nodes[nodeIndex].name = name ?? $"Node-{nodeIndex}"; }