Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Update UI Text/Image

Discussion in 'Multiplayer' started by boowman, Jun 19, 2015.

  1. boowman

    boowman

    Joined:
    Jan 3, 2014
    Posts:
    57
    I was wondering how I would be able to update some UI text over the network.
    Basically I have a UI text above my player and I am displaying his name and hp, and I want it to update on the network.

    I tried some things like SyncVar but not sure how to use this using Text types since SyncVar supports only (int,float,string and some other)
     
  2. LovattoStudio

    LovattoStudio

    Joined:
    Feb 11, 2015
    Posts:
    15
    You not need sync the UIText component, just the string / name.
    and apply in Local Client (Text.text = NameSyncVar)