Skip to content

Commit

Permalink
Merge pull request #297 from NyxStudio/main
Browse files Browse the repository at this point in the history
Made SetNodeName method overridable in GameObjectInstantiator class
  • Loading branch information
atteneder authored Jan 14, 2022
2 parents d28759b + db6b801 commit dd95be0
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 dd95be0

Please sign in to comment.