Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: pedroathumanspot on January 07, 2013, 12:08:30 PM

Title: Getting property of a FSM Object Variable [solved]
Post by: pedroathumanspot on January 07, 2013, 12:08:30 PM
Hi all!

In a particular state of my FSM I need to get the property of a (run-time assigned) Variable. The problem is that:

1. The type of FSM Variables I can declare is closed/limited (See: https://hutonggames.fogbugz.com/default.asp?W45);
2. The GetProperty action only accepts UnityEngine.Object types and the only property I can access (on that particular Object Type) is the "name".

Am I missing something here? How could I achieve this?

Thanks in advance.

Cheers.
Title: Re: Getting property of a FSM Object Variable
Post by: pedroathumanspot on January 07, 2013, 12:45:32 PM
I got it now. I didn't notice that you can define the Object Type of a FSM Variable when that Variable is of the type Object. I can now access the desired properties of my Object Variable with GetProperty.