When Instantiating an object, how do you rename the child objects within the gameobject (parent) that is being instantiated?
Basically I have this:
- MainObject
- ChildA
- ChildB
When I instantiate and use name to rename the obect, it renames the parent object, like this:
- MainObject_DifferentName
- ChildA
- ChildB
But I want to do something like this:
- MainObject
- ChildA_2
- ChildB_2