C# Class UNetAnchorManager

Creates, exports, and imports anchors as required.
Inheritance: NetworkBehaviour
Afficher le fichier Open project: Microsoft/HoloToolkit-Unity Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

WaitForAnchor() public méthode

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