playMaker

Author Topic: From Fsm-Variable to Object (prefab) ?  (Read 1560 times)

Nightreaver

  • Playmaker Newbie
  • *
  • Posts: 2
From Fsm-Variable to Object (prefab) ?
« 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
« Last Edit: January 14, 2013, 03:01:26 PM by Nightreaver »