I've been pondering how to put some more flexibility into PlayMaker. In particular, I'd love some way to be able to evaluate expressions given to an action. If I understand correctly, the main barrier to this is that any expression provided to Unity must ultimately be compiled when the game is built. Which means that PM can't simply store an expression as a string to be evaluated at runtime, it must somehow include that expression in a script at design time that will be compiled.
My thought about how to address this is to have some manner of placeholder script that Unity will compile. If a PM action could then modify the contents of that script at design time as the action is set up, in theory an expression given could then be inserted into the script. The script could then be designed to make the value of the expression available when it is compiled.
The catch here is that I'm not sure that's possible. I don't know the Unity plugin framework at all and I have no idea if an action could modify a script at design time in that manner. Does anyone know if that is possible? (Or if this whole idea wouldn't work for some other reason?)
Thanks!