Search Unity

ARFoundation question about AR Reference Point

Discussion in 'AR' started by neilxm, Aug 6, 2019.

  1. neilxm

    neilxm

    Joined:
    Oct 13, 2016
    Posts:
    6
    Say I have an ARReferencePoint and I have added a child Gameobject to it, and called it child. Is it possible to access the reference point using this code?

    child.transform.parent.gameObject.GetComponent<ARReferencePoint>()

    As in, can you access the Reference point and get trackable ID etc. by using GetComponent<ARReferencePoint>() ?
     
  2. neilxm

    neilxm

    Joined:
    Oct 13, 2016
    Posts:
    6
    [UPDATE] It seems this does work!