SpacePinBinderFile Class
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.
Simple implementation of an IBindingOracle interface, which puts and gets binding from file locally.
public class SpacePinBinderFile : UnityEngine.MonoBehaviour, Microsoft.MixedReality.WorldLocking.ASA.IBindingOracle
type SpacePinBinderFile = class
inherit MonoBehaviour
interface IBindingOracle
Public Class SpacePinBinderFile
Inherits MonoBehaviour
Implements IBindingOracle
- Inheritance
-
UnityEngine.MonoBehaviourSpacePinBinderFile
- Implements
Remarks
Note that this implements spatial persistence locally across sessions. Also, the file can be transferred from device to device, allowing shared spaces between HoloLens, Android, and iOS. A more sophisticated implementation would be very similar, but instead of saving to and loading from a local file, would save to and load from a shared location in the cloud.
Constructors
SpacePinBinderFile() |
Properties
Name |
Name of this oracle. |
Methods
Get(IBinder) |
Retrieve bindings from file and apply them to the input binder. |
Put(IBinder) |
Pull bindings from the binder and save them to file. |