playMaker

Author Topic: photon - how to use a variable into a text UI  (Read 1237 times)

kiugetski

  • Playmaker Newbie
  • *
  • Posts: 8
photon - how to use a variable into a text UI
« on: June 28, 2015, 06:21:46 PM »
on login i give my user name how ever i would like to display my user name above my character and also in my gui
im using the ugui but cant seem to find it , is there anyinfo on that subject ?
« Last Edit: June 28, 2015, 06:57:18 PM by kiugetski »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: photon - how to use a variable into a text UI
« Reply #1 on: June 29, 2015, 02:15:36 AM »
Hi,

 This will be let to your discretion. Store the name of the user in a FsmString variable and then use that FsmString to inject it in a UI Text component.

have you tried that already? or maybe I don't understand the question?

Have you studied the photon Sample provided? while it uses the old UI system, handling the user name will be identical in principle.

http://www.hutonggames.com/samples.php

Bye,

 Jean