playMaker

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

diskobolos

  • Playmaker Newbie
  • *
  • Posts: 6
    • View Profile
Preset variable type based on its prefix
« on: September 05, 2013, 01: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, 01:41:37 AM by diskobolos »