Search Unity

Deleting anchor when child gameobject is destroyed

Discussion in 'AR' started by Thimo_, Aug 19, 2020.

  1. Thimo_

    Thimo_

    Joined:
    Aug 26, 2019
    Posts:
    59
    I have written some code where a gameobjects parent is an AR anchor when this gameobject is placed in the scene.

    Is that Anchor automatically deleted when it has no more references?

    How do I otherwise get the anchor of my gameobject because I don't know how I can detect if the parent of the gameobject is an AR anchor or a normal gameobject?