Skip to content

Commit

Permalink
Made SetNodeName method overridable in GameObjectInstantiator class
Browse files Browse the repository at this point in the history
  • Loading branch information
NyxStudio committed Dec 23, 2021
1 parent 1d7e3b6 commit db6b801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Runtime/Scripts/GameObjectInstantiator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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}";
}

Expand Down

0 comments on commit db6b801

Please sign in to comment.