Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Nightreaver on January 14, 2013, 09:15:33 AM

Title: From Fsm-Variable to Object (prefab) ?
Post by: Nightreaver on January 14, 2013, 09:15:33 AM
So, i want to know what is the right way from an FsmVariable to Object-Prefab (NGUI UIFont)?

currently im doing

Code: [Select]

...
public FsmObject font;

Object realFont = font.Value;

lbl.font = realFont as UIFont;

...




but i doesnt work, the result is always UnityEnginge.GameObject instead of UIFont.

what is wrong here?


Thanks