WorldAnchorManager.RemoveAnchor Method

Definition

Overloads

RemoveAnchor(String)

Removes the anchor from the anchor store, without a GameObject reference. If a GameObject reference can be found, the anchor component will be removed.

RemoveAnchor(GameObject)

Removes the anchor component from the GameObject and deletes the anchor from the anchor store.

RemoveAnchor(String)

Removes the anchor from the anchor store, without a GameObject reference. If a GameObject reference can be found, the anchor component will be removed.

public:
 void RemoveAnchor(System::String ^ anchorName);
public void RemoveAnchor (string anchorName);
member this.RemoveAnchor : string -> unit
Public Sub RemoveAnchor (anchorName As String)

Parameters

anchorName
String

The name of the anchor to remove from the anchor store.

Applies to

RemoveAnchor(GameObject)

Removes the anchor component from the GameObject and deletes the anchor from the anchor store.

public:
 void RemoveAnchor(UnityEngine::GameObject ^ gameObjectToUnanchor);
public void RemoveAnchor (UnityEngine.GameObject gameObjectToUnanchor);
member this.RemoveAnchor : UnityEngine.GameObject -> unit
Public Sub RemoveAnchor (gameObjectToUnanchor As GameObject)

Parameters

gameObjectToUnanchor
UnityEngine.GameObject

The GameObject reference with valid anchor to remove from the anchor store.

Applies to