Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

how to retrieve data from ar

Discussion in 'AR' started by samsoulsamsam, Nov 13, 2019.

  1. samsoulsamsam

    samsoulsamsam

    Joined:
    Sep 11, 2019
    Posts:
    2
    im facing a problem when i need to take the data from the ui text that created when touch happen. i need to take the data from ui and save into database which is firebase that im currently using. this is the specific code.

    UnityEngine.UI.Text txScp = texts[t_index].transform.GetChild(0).transform.GetChild(0).GetComponent<UnityEngine.UI.Text>();
    txScp.text = Mathf.Round(dir.magnitude * 1000) / 10 + "cm";
    //Mathf.Round(dir.magnitude*1000)/10
    f = Mathf.Round(dir.magnitude * 1000) / 10 + "cm";
    PostToDatabase();

    please help me.