We've moved!

Starting from MRTK 2.6, we are publishing both conceptual docs and API references on docs.microsoft.com. For conceptual docs, please visit our new landing page. For API references, please visit the MRTK-Unity section of the dot net API explorer. Existing content will remain here but will not be updated further.

Search Results for

    Show / Hide Table of Contents

    Class MixedRealityTeleportSystem

    The Mixed Reality Toolkit's implementation of the IMixedRealityTeleportSystem.

    Inheritance
    Object
    BaseService
    BaseEventSystem
    BaseCoreSystem
    MixedRealityTeleportSystem
    Implements
    IMixedRealityTeleportSystem
    IMixedRealityEventSystem
    IMixedRealityService
    IDisposable
    Inherited Members
    BaseCoreSystem.Registrar
    BaseEventSystem.enableDanglingHandlerDiagnostics
    BaseEventSystem.EventHandlersByType
    BaseEventSystem.EventListeners
    BaseEventSystem.RegisterHandler<T>(IEventSystemHandler)
    BaseEventSystem.UnregisterHandler<T>(IEventSystemHandler)
    BaseService.DefaultPriority
    BaseService.Priority
    BaseService.ConfigurationProfile
    BaseService.Reset()
    BaseService.Enable()
    BaseService.Update()
    BaseService.LateUpdate()
    BaseService.Disable()
    BaseService.disposed
    BaseService.Dispose()
    BaseService.Dispose(Boolean)
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: Microsoft.MixedReality.Toolkit.Teleport
    Assembly: cs.temp.dll.dll
    Syntax
    public class MixedRealityTeleportSystem : BaseCoreSystem, IMixedRealityTeleportSystem, IMixedRealityEventSystem, IMixedRealityService, IDisposable

    Constructors

    MixedRealityTeleportSystem()

    Constructor.

    Declaration
    public MixedRealityTeleportSystem()

    MixedRealityTeleportSystem(IMixedRealityServiceRegistrar)

    Constructor.

    Declaration
    [Obsolete("This constructor is obsolete (registrar parameter is no longer required) and will be removed in a future version of the Microsoft Mixed Reality Toolkit.")]
    public MixedRealityTeleportSystem(IMixedRealityServiceRegistrar registrar)
    Parameters
    Type Name Description
    IMixedRealityServiceRegistrar registrar

    The IMixedRealityServiceRegistrar instance that loaded the service.

    Properties

    Name

    Optional Priority attribute if multiple services of the same type are required, enables targeting a service for action.

    Declaration
    public override string Name { get; protected set; }
    Property Value
    Type Description
    String
    Overrides
    BaseService.Name

    TeleportDuration

    The duration of the teleport in seconds.

    Declaration
    public float TeleportDuration { get; set; }
    Property Value
    Type Description
    Single

    Methods

    Destroy()

    Optional Destroy function to perform cleanup of the service before the Mixed Reality Toolkit is destroyed.

    Declaration
    public override void Destroy()
    Overrides
    BaseEventSystem.Destroy()

    HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)

    The main function for handling and forwarding all events to their intended recipients.

    Declaration
    public override void HandleEvent<T>(BaseEventData eventData, ExecuteEvents.EventFunction<T> eventHandler)
        where T : IEventSystemHandler
    Parameters
    Type Name Description
    BaseEventData eventData

    Event Data

    ExecuteEvents.EventFunction<T> eventHandler

    Event Handler delegate

    Type Parameters
    Name Description
    T

    Event Handler Interface Type

    Overrides
    Microsoft.MixedReality.Toolkit.BaseEventSystem.HandleEvent<T>(BaseEventData, ExecuteEvents.EventFunction<T>)
    Remarks

    See: https://docs.unity3d.com/Manual/MessagingSystem.html

    Initialize()

    The initialize function is used to setup the service once created. This method is called once all services have been registered in the Mixed Reality Toolkit.

    Declaration
    public override void Initialize()
    Overrides
    BaseService.Initialize()

    RaiseTeleportCanceled(IMixedRealityPointer, IMixedRealityTeleportHotSpot)

    Raise a teleportation canceled event.

    Declaration
    public void RaiseTeleportCanceled(IMixedRealityPointer pointer, IMixedRealityTeleportHotSpot hotSpot)
    Parameters
    Type Name Description
    IMixedRealityPointer pointer

    The pointer that raised the event.

    IMixedRealityTeleportHotSpot hotSpot

    The teleport target

    RaiseTeleportRequest(IMixedRealityPointer, IMixedRealityTeleportHotSpot)

    Raise a teleportation request event.

    Declaration
    public void RaiseTeleportRequest(IMixedRealityPointer pointer, IMixedRealityTeleportHotSpot hotSpot)
    Parameters
    Type Name Description
    IMixedRealityPointer pointer

    The pointer that raised the event.

    IMixedRealityTeleportHotSpot hotSpot

    The teleport target

    RaiseTeleportStarted(IMixedRealityPointer, IMixedRealityTeleportHotSpot)

    Raise a teleportation started event.

    Declaration
    public void RaiseTeleportStarted(IMixedRealityPointer pointer, IMixedRealityTeleportHotSpot hotSpot)
    Parameters
    Type Name Description
    IMixedRealityPointer pointer

    The pointer that raised the event.

    IMixedRealityTeleportHotSpot hotSpot

    The teleport target

    Register(GameObject)

    Register a GameObject to listen to teleport events.

    Declaration
    public override void Register(GameObject listener)
    Parameters
    Type Name Description
    GameObject listener
    Overrides
    BaseEventSystem.Register(GameObject)

    Unregister(GameObject)

    Unregister a GameObject from listening to teleport events.

    Declaration
    public override void Unregister(GameObject listener)
    Parameters
    Type Name Description
    GameObject listener
    Overrides
    BaseEventSystem.Unregister(GameObject)

    Implements

    IMixedRealityTeleportSystem
    IMixedRealityEventSystem
    IMixedRealityService
    System.IDisposable
    In This Article
    Back to top Generated by DocFX