PlayMaker Help & Tips > PlayMaker Help

How to change default action names?

(1/4) > >>

adre:
Hello,
I would like to change default action names by hand for obscurity.

For example, When i change Wait.cs to Waitchanged.cs and edit "public class Wait" to "public class Waitchanged" ,  in the "State" part of "Playmaker Editor" window, Wait action changes to "Missing action" , making the FSM useless.

How do i make it so the current FSMs with the changed action names wont break?

Thanks a lot

Thore:
When you place the action in the state, you can double click on the title and rename it. Or select and F2 should work, too. Do this.

Don‘t rename the actual action scripts. This screws up updating them later, and referencing them, and so forth. If you really want to go ahead, ignore my warning, which would be a terrible idea, then you need to change the class name and the file name to your new name (this is a general rule), which must be the exact same in both cases, must not conflict with similar named scripts anywhere in your project, must not contain space or weird letters.

Also, when you change the name in script, all scripts of course lose the reference. You must delete those empty references, and place the newly named actions instead. Again, don’t do this. Rename the title once placed instead. See some other tips, while I am at it.

adre:
Thanks a lot for your reply Thore.

Renaming the title doesn't provide obscurity. The actual script name is still seen.

djaydino:
Hi.
Carefull with renaming actions
If you update you will get problems

adre:

--- Quote from: djaydino on October 09, 2018, 09:12:50 AM ---Hi.
Carefull with renaming actions
If you update you will get problems

--- End quote ---

I am aware of that.

I just want to know if what i asked ,is possible or if there is a way to do it. Because, in Unity, if you change a script name, it is updated without problems.

Still awaiting a reply, so i deleted [SOLVED] tag.

Navigation

[0] Message Index

[#] Next page

Go to full version