docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class XRSubsystem<TSubsystemDescriptor>

    Serves as the base class for all the subsystems in this package.

    Inheritance
    object
    Subsystem
    Subsystem<TSubsystemDescriptor>
    XRSubsystem<TSubsystemDescriptor>
    Implements
    ISubsystem
    Inherited Members
    Subsystem<TSubsystemDescriptor>.SubsystemDescriptor
    Subsystem.Destroy()
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public abstract class XRSubsystem<TSubsystemDescriptor> : Subsystem<TSubsystemDescriptor>, ISubsystem where TSubsystemDescriptor : ISubsystemDescriptor
    Type Parameters
    Name Description
    TSubsystemDescriptor

    The Subsystem Descriptor for the Subsystem.

    Properties

    running

    true if the Subsystem has been Started and is currently running, otherwise false.

    Declaration
    public override sealed bool running { get; }
    Property Value
    Type Description
    bool
    Overrides
    Subsystem.running

    Methods

    OnDestroy()

    Destroys the subsystem. If the subsystem is running, Stop() is also called.

    Declaration
    protected override sealed void OnDestroy()
    Overrides
    Subsystem.OnDestroy()

    OnDestroyed()

    Invoked when Destroy is called. This method will not be invoked more than once, even if Destroy is called multiple times.

    Declaration
    protected abstract void OnDestroyed()

    OnStart()

    Invoked when Start() is called and running is false.

    Declaration
    protected abstract void OnStart()

    OnStop()

    Invoked when Stop() is called and running is true.

    Declaration
    protected abstract void OnStop()

    Start()

    Starts the subsystem.

    Declaration
    public override sealed void Start()
    Overrides
    Subsystem.Start()

    Stop()

    Stops the subsystem.

    Declaration
    public override sealed void Stop()
    Overrides
    Subsystem.Stop()

    Implements

    ISubsystem
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)