docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IXRPackage

    Implement this interface to provide package level information and actions.

    XR Plug-in Management will reflect on all types in the project to find implementers of this interface. These instances are used to get information required to integrate your package with the XR Plug-in Management system.

    Namespace: UnityEditor.XR.Management.Metadata
    Assembly: Unity.XR.Management.Editor.dll
    Syntax
    public interface IXRPackage

    Properties

    metadata

    Returns an instance of IXRPackageMetadata. Information will be used to allow the XR Plug-in Management to provide settings and loaders through the settings UI.

    Declaration
    IXRPackageMetadata metadata { get; }
    Property Value
    Type Description
    IXRPackageMetadata

    Methods

    PopulateNewSettingsInstance(ScriptableObject)

    Allows the package to configure new settings and/or port old settings to the instance passed in.

    Declaration
    bool PopulateNewSettingsInstance(ScriptableObject obj)
    Parameters
    Type Name Description
    ScriptableObject obj

    ScriptableObject instance representing an instance of the settings type provided by settingsType.

    Returns
    Type Description
    bool

    True if the operation succeeded, false if not. If implementation is empty, just return true.

    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)