Anchor point in AR Space
    public class ARVRAnchor : Spatial

The ARVR Anchor point is a spatial node that maps a real world location identified by the AR platform to a position within the game world. For example, as long as plane detection in ARKit is on, ARKit will identify and update the position of planes (tables, floors, etc) and create anchors for them.

This node is mapped to one of the anchors through its unique id. When you receive a signal that a new anchor is available you should add this node to your scene for that anchor. You can predefine nodes and set the id and the nodes will simply remain on 0,0,0 until a plane is recognised.

Keep in mind that as long as plane detection is enable the size, placing and orientation of an anchor will be updates as the detection logic learns more about the real world out there especially if only part of the surface is in view.

Inheritance Chain


    public ARVRAnchor()


    public int AnchorId { get; set; }

The anchor’s id. You can set this before the anchor itself exists. The first anchor gets an id of 1, the second an id of 2, etc. When anchors get removed, the engine can then assign the corresponding id to new anchors. The most common situation where anchors ‘disappear’ is when the AR server identifies that two anchors represent different parts of the same plane and merges them.


    public int GetAnchorId()

Getter for AnchorId

    public string GetAnchorName()

Returns the name given to this anchor.

    public bool GetIsActive()

Returns true if the anchor is being tracked and false if no anchor with this id is currently known.

    public Plane GetPlane()

Returns a plane aligned with our anchor, handy for intersection testing

    public Vector3 GetSize()

Returns the estimated size of the plane that was detected. Say when the anchor relates to a table in the real world, this is the estimated size of the surface of that table.

    public void SetAnchorId(int anchorId)

Setter for AnchorId