C# Class UNetAnchorManager

Creates, exports, and imports anchors as required.
Inheritance: NetworkBehaviour
ファイルを表示 Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Public Methods

Method Description
CreateAnchor ( ) : void

If we are supposed to create the anchor for export, this is the function to call.

WaitForAnchor ( ) : void

If we don't have the anchor already, call this to download the anchor.

Private Methods

Method Description
AttachToCachedAnchor ( string AnchorName ) : bool

Attempts to attach to an anchor by anchorName in the local store..

CheckConfiguration ( ) : bool

Ensures that the scene has what we need to continue.

ExportComplete ( SerializationCompletionReason status ) : void

Called when serializing an anchor is complete.

ImportComplete ( SerializationCompletionReason status, WorldAnchorTransferBatch wat ) : void

Called when a remote anchor has been deserialized

NetworkTransmitter_dataReadyEvent ( byte data ) : void

Called when anchor data is ready.

Start ( ) : void
Update ( ) : void
WriteBuffer ( byte data ) : void

Called as anchor data becomes available to export

Method Details

CreateAnchor() public method

If we are supposed to create the anchor for export, this is the function to call.
public CreateAnchor ( ) : void
return void

WaitForAnchor() public method

If we don't have the anchor already, call this to download the anchor.
public WaitForAnchor ( ) : void
return void