Getting A Label Value

Discussion in 'Buildbox 3.0' started by bgwiss, Jan 4, 2019.

  1. bgwiss

    bgwiss Boxer

    Joined:
    Oct 31, 2018
    Messages:
    58
    Likes Received:
    19
    Hi,
    I'm trying to get the value of one of the labels I've set but it's not working.
    I've tried the following:
    log(String(this.entity().component('score').textContent));
    However the value is coming as undefined, can anyone help?
     
    Appossible likes this.
  2. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Does anyone have a solution to this?

    Thanks.
     
    Last edited: Nov 19, 2019
  3. particles

    particles Avid Boxer

    Joined:
    Aug 31, 2018
    Messages:
    337
    Likes Received:
    242
    As of now, no function is available to read text from Label.
     
  4. AaroArts

    AaroArts Miniboss Boxer

    Joined:
    Jun 22, 2016
    Messages:
    1,546
    Likes Received:
    826
    Ok thanks for letting me know.
    I will have to try and figure out how to move my label.

    Do you know how to set a Label’s position based on it’s object/mesh location?
     

Share This Page