docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PackageNotificationInfo

    This class holds information that should be displayed in an Editor tooltip for a given package.

    Inheritance
    object
    PackageNotificationInfo
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.XR.Management
    Assembly: Unity.XR.Management.Editor.dll
    Syntax
    public class PackageNotificationInfo

    Constructors

    PackageNotificationInfo(GUIContent, string, string)

    Constructs a container for package notification information that displays in the XR Plug-in Management window.

    Declaration
    public PackageNotificationInfo(GUIContent userInterfaceIcon, string tooltip, string additionalInfoUri = null)
    Parameters
    Type Name Description
    GUIContent userInterfaceIcon

    The GUIContent icon to display in the XR Plug-in Management window. If the tooltip of this icon is empty, null, only whitespace, or otherwise invalid, the constructor will throw an exception.

    string tooltip
    string additionalInfoUri

    Used to surface a URI that points to additional information about the notification. For example, clicking the icon directly could send the user to the package documentation website.

    Exceptions
    Type Condition
    ArgumentException

    Thrown if either userInterfaceIcon does not contain a valid tooltip or if additionalInfoUri is not empty and isn't a valid URI string.

    Fields

    additionalInfoUri

    A read-only string that contains a link to additional information about the warning.

    Declaration
    public readonly string additionalInfoUri
    Field Value
    Type Description
    string
    Remarks

    If this is null or empty, the window will not redirect the user.

    userInterfaceIcon

    The GUI icon and tooltip that will be drawn for this PackageNotificationInfo.

    Declaration
    public readonly GUIContent userInterfaceIcon
    Field Value
    Type Description
    GUIContent
    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)