Hi,
You can always use components for your models, as wrappers, think of it as a "Unity" representation. But that's fair enough maybe an overkill in most cases.
be VERY careful with dynamic creation, make sure you use a pooling system, cause creating component is costly in Unity.
Tips:
-- Don't rely too much on reflection, it can cause issues on mobile platforms, instead create true custom actions, one for each of your models specifically.
-- separate getters and setters, make one action to get values and one action to set values. Possibly even make one action for each value within a model, if you only need to do granular work within PlayMaker.
-- You can create some editor tools to generate these custom actions. if you are building a framework, I suggest you do that, it will save you time in the long run to ensure that your actions are always true to your models, when refactoring or incrementing features.
You can also have your PlayMaker template as a composition of your model, features each properies, and then you can do the job the other way around, have your framework synchroinizing modesl to their PlayMaker templates equivalent, but that's of course if you do have a one to one bases between all your models and fsm templates ( which I think you don't).
Bye,
Jean
Bye,
Jean