playMaker

Author Topic: Help for Unity new UI (Canvas, etc)  (Read 2297 times)

rjeroense

  • Playmaker Newbie
  • *
  • Posts: 1
Help for Unity new UI (Canvas, etc)
« on: March 10, 2015, 07:24:29 PM »
Dear PlayMaker,

Thanks for the new uGUI tutorial and samples. I am trying to recreate your Video 07 - global variables, evens and Managers - Health Pickup. I am doing this with Unity 4.6, i.e. the Version with the new Canvas GUI System. I am trying to write the string current_player_health_s to the Canvas.Text component, but without any luck. Your uGUISamples package only explains the slider, toggle, button and Input field GUI Events. How can I set the Canvas.text to Display the string current_player_health_s?
Thanks for your time and help.
Best regards,
Richard

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Help for Unity new UI (Canvas, etc)
« Reply #1 on: March 16, 2015, 02:29:52 AM »
Hi,

 There is now an action specifically made to let you set the text of a UI component:

1: Get the Ecosystem browser
2: search for ugui
3: locate the uGuiSetText action and get it
4: you can now use it in your fsm to set the text value of a ui text.

 Bye,

 Jean