WorldAnchorManager.ImportAnchor(String, GameObject) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called before creating anchor. Used to check if import required.
protected:
virtual bool ImportAnchor(System::String ^ anchorId, UnityEngine::GameObject ^ objectToAnchor);
protected virtual bool ImportAnchor (string anchorId, UnityEngine.GameObject objectToAnchor);
abstract member ImportAnchor : string * UnityEngine.GameObject -> bool
override this.ImportAnchor : string * UnityEngine.GameObject -> bool
Protected Overridable Function ImportAnchor (anchorId As String, objectToAnchor As GameObject) As Boolean
Parameters
- anchorId
- String
Name of the anchor to import.
- objectToAnchor
- UnityEngine.GameObject
GameObject to anchor.
Returns
Remarks
Return true from this function if import is required.