playMaker

Author Topic: Mass set name/template on prefabs  (Read 638 times)

Mupp

  • Full Member
  • ***
  • Posts: 167
Mass set name/template on prefabs
« on: January 09, 2021, 04:29:05 PM »
Can you do this? When you select more than 1 it says you can't multi edit them and if you want to setup several FSM's on several hundreds prefabs it gets really stupid.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Mass set name/template on prefabs
« Reply #1 on: January 10, 2021, 09:10:58 AM »
Hi.
You can try this :

If you try this, make sure you have a backup of your project!

Place the prefabs in a scene.
Then place the template on 1 fsm, then copy the fsm.

Then select the other gameobjects and right click on the fsm that you wish to update.
This works if the other objects have the same amount of fsms, if some have more or less then maybe better to remove and place as new,
or make sure that the fsm that you want to change is on top of the list.

A different way would be making a tool for this (C# script)

Mupp

  • Full Member
  • ***
  • Posts: 167
Re: Mass set name/template on prefabs
« Reply #2 on: January 10, 2021, 09:22:54 AM »
Thanks.