Exemplo n.º 1
0
    internal void UploadWorldAnchor(WorldAnchor wa, WorldAnchorTransferBatch.SerializationDataAvailableDelegate OnExportDataAvailable,
                                    WorldAnchorTransferBatch.SerializationCompleteDelegate OnExportComplete)
    {
        // Serialise the world anchor and then send the byte array
        // to the server..
        WorldAnchorTransferBatch transferBatch = new WorldAnchorTransferBatch();

        transferBatch.AddWorldAnchor("GameRootAnchor", wa);
        WorldAnchorTransferBatch.ExportAsync(transferBatch, OnExportDataAvailable, OnExportComplete);
    }
Exemplo n.º 2
0
 public static void ExportAsync(WorldAnchorTransferBatch transferBatch, WorldAnchorTransferBatch.SerializationDataAvailableDelegate onDataAvailable, WorldAnchorTransferBatch.SerializationCompleteDelegate onCompleted)
 {
     if (transferBatch == null)
     {
         throw new ArgumentNullException("transferBatch");
     }
     if (onDataAvailable == null)
     {
         throw new ArgumentNullException("onDataAvailable");
     }
     if (onCompleted == null)
     {
         throw new ArgumentNullException("onCompleted");
     }
     WorldAnchorTransferBatch.ExportAsync_Internal(transferBatch.m_NativePtr, onDataAvailable, onCompleted);
 }
Exemplo n.º 3
0
 private static extern void ExportAsync_Internal(IntPtr transferBatch, WorldAnchorTransferBatch.SerializationDataAvailableDelegate onDataAvailable, WorldAnchorTransferBatch.SerializationCompleteDelegate onComplete);
Exemplo n.º 4
0
 private static void InvokeWorldAnchorSerializationDataAvailableDelegate(WorldAnchorTransferBatch.SerializationDataAvailableDelegate onSerializationDataAvailable, byte[] data)
 {
     onSerializationDataAvailable(data);
 }