playMaker

Author Topic: Find and Replace in Playmaker?  (Read 1726 times)

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Find and Replace in Playmaker?
« on: April 10, 2016, 10:54:11 AM »
Let's say I have a bunch of actions which reference a game object called 'Object_A'.  And now I want to replace all references to 'Object_A' with 'Object_B'.

Is there a find and replace method to automate the process?

Thanks!

joduffy

  • Full Member
  • ***
  • Posts: 121
  • Here to help
    • Online Playmaker Courses
Re: Find and Replace in Playmaker?
« Reply #1 on: April 12, 2016, 02:25:22 AM »
Hi,

I am not aware of any find and replace methods.

If you have/make Object_A as a prefab. What you can do is drag Object_B over the prefab in the project window while holding the ALT key and it will give you the option to replace Object_A with Object_B. This should then keep your references to all your actions.

The only other way I can think of, which I use all the time, is to have a variable that all the actions use. So you are not dragging Object_A into each action everytime but rather selecting the variable. Global variables are good for this as they can be used between FSM's. With this variable setup, you can then update and change the references back and forth between Object_A and Object_B as you want.
« Last Edit: April 12, 2016, 02:29:20 AM by joduffy »
- Jonathan

Online Playmaker Courses available at:
http://courses.jonathanoduffy.com

“I want the world to be a better place because I was here.”  -  Will Smith

mTruly

  • Junior Playmaker
  • **
  • Posts: 98
Re: Find and Replace in Playmaker?
« Reply #2 on: April 14, 2016, 10:51:32 AM »
Thanks very much for the ideas!

I think the variable approach is the best at this point... just wasn't sure if there was a way within Playmaker to do the find & replace.

Thanks again.