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.

How and when does AddUserAnchorFromGameObject assign an anchor to a Game Object?

Discussion in 'AR' started by valentin-simian, Feb 4, 2019.

  1. valentin-simian

    valentin-simian

    Joined:
    Nov 16, 2012
    Posts:
    46
    Hi,

    I'm going through the UnityARUserAnchorExample.cs script, and I don't see that you're assigning an anchor to any position.
    In UnityARUserAnchorComponent.cs, you're obtaining the anchor ID using the AddUserAnchorFromGameObject method, but how is the anchor assigned to a position in real space? Is that position dynamically changing, assigning the anchor to a different place in the real world?

    Confused. Thanks.