playMaker

Author Topic: static member in playmaker action?  (Read 2180 times)

kiriri

  • Hero Member
  • *****
  • Posts: 506
static member in playmaker action?
« on: September 29, 2012, 11:26:29 AM »
I've just tried  to create a "Set Mesh" action, but I can't do it... For the instantiate function to work I need a static reference to that variable... which I don't know how to make in playmaker since you only have one class and you can't apparently need to reference from another class...

To make it more clear, I want to turn this:
Code: [Select]
    var aMesh : Mesh;
     
    function Start () {
        var meshInstance : Mesh = Instantiate(aMesh);
        GetComponent(MeshFilter).mesh = meshInstance;
    }

into an action, but the mesh needs to be defined as
Code: [Select]
MyClass.MyItem.MyProperty
for instantiate to work. How can I do that within the playmaker class?
Best,
Sven