playMaker

Author Topic: Create Object (add name)  (Read 2003 times)

wheretheidivides

  • Sr. Member
  • ****
  • Posts: 496
Create Object (add name)
« on: April 08, 2015, 03:39:47 PM »
When you use the 'create object' action, it creates a clone of a prefab.  However, if you create more than 1 the names are the same.  Would be nice to be able to have the option to either
1) uniquely name the object
     So have a line in the action called 'name' and one could type in 'car-ford' or 'car-fiero'.
2) Have the object increment by number
     So the prefab is 'car'.  Each instance would be 'car-1' and then 'car-2.  So you would have to check the hierarchy to see if the object exists and if so, increment the number.
So

play_edu

  • Full Member
  • ***
  • Posts: 116
Re: Create Object (add name)
« Reply #1 on: April 11, 2015, 02:27:57 AM »
When You create object store on variable and there is action called "set name " you can definitely change the name of game object and  also increment numbers like car - 1, car - 2 with using  Build string action.
sorry for my bad English :P