playMaker

Author Topic: Preset variable type based on its prefix  (Read 2509 times)

diskobolos

  • Playmaker Newbie
  • *
  • Posts: 6
Preset variable type based on its prefix
« on: September 05, 2013, 04:32:44 AM »
I follow a convention in variable naming:
s_xyz - string
b_xyz - bool
go_xyz - gameObject
...

It would be great if playmaker recognized those prefixes and automatically preset the variable type based on these.

To support various conventions you could add a simple mapping file (like java properties file) with bool=myPrefix, float=myPrefix, etc.
Or even better make a gui for that ... :)

Many thanks!

EDIT:
Keeping consistency when renaming such variable would be great. Even if it means only a reminder to change the prefix manually.
« Last Edit: September 05, 2013, 04:41:37 AM by diskobolos »