docs.unity3d.com
    Show / Hide Table of Contents

    Struct PreprocessBuildEventArgs

    Event arguments for the OnPreprocessBuild(PreprocessBuildEventArgs) event.

    Inherited Members
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: UnityEditor.XR.ARSubsystems
    Syntax
    public readonly struct PreprocessBuildEventArgs : IEquatable<PreprocessBuildEventArgs>

    Constructors

    PreprocessBuildEventArgs(BuildTarget, IReadOnlyList<XRLoader>)

    Construct for PreprocessBuildEventArgs.

    Declaration
    public PreprocessBuildEventArgs(BuildTarget buildTarget, IReadOnlyList<XRLoader> activeLoadersForBuildTarget)
    Parameters
    Type Name Description
    UnityEditor.BuildTarget buildTarget

    The build target which is being built.

    IReadOnlyList<XRLoader> activeLoadersForBuildTarget

    The collection of active XRLoaders enabled for buildTarget.

    Properties

    activeLoadersForBuildTarget

    The collection of active XRLoaders enabled for buildTarget.

    Declaration
    public readonly IReadOnlyList<XRLoader> activeLoadersForBuildTarget { get; }
    Property Value
    Type Description
    IReadOnlyList<XRLoader>
    Remarks

    Implementors of OnPreprocessBuild(PreprocessBuildEventArgs) should check that an appropriate loader is present before continuing to execute any preprocessor logic.

    buildTarget

    The build target which is being built.

    Declaration
    public readonly BuildTarget buildTarget { get; }
    Property Value
    Type Description
    UnityEditor.BuildTarget

    Methods

    Equals(Object)

    Tests for equality.

    Declaration
    public override readonly bool Equals(object obj)
    Parameters
    Type Name Description
    Object obj

    The object to compare with this object.

    Returns
    Type Description
    Boolean

    True if obj is a PreprocessBuildEventArgs and Equals(PreprocessBuildEventArgs) is true, otherwise false.

    Overrides
    ValueType.Equals(Object)

    Equals(PreprocessBuildEventArgs)

    Tests for equality.

    Declaration
    public readonly bool Equals(PreprocessBuildEventArgs other)
    Parameters
    Type Name Description
    PreprocessBuildEventArgs other

    The event args to compare for equality.

    Returns
    Type Description
    Boolean

    True if all properties are the same; false otherwise.

    Implements
    IEquatable<T>.Equals(T)

    GetHashCode()

    Computes a hash code from all properties suitable for use in a Dictionary or HashSet.

    Declaration
    public override readonly int GetHashCode()
    Returns
    Type Description
    Int32

    Returns a hashcode of this object.

    Overrides
    ValueType.GetHashCode()

    Operators

    Equality(PreprocessBuildEventArgs, PreprocessBuildEventArgs)

    Tests for equality. Same as Equals(PreprocessBuildEventArgs).

    Declaration
    public static bool operator ==(PreprocessBuildEventArgs lhs, PreprocessBuildEventArgs rhs)
    Parameters
    Type Name Description
    PreprocessBuildEventArgs lhs

    The left-hand side of the comparison.

    PreprocessBuildEventArgs rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    Boolean

    Returns the same value as Equals(PreprocessBuildEventArgs).

    Inequality(PreprocessBuildEventArgs, PreprocessBuildEventArgs)

    Tests for inequality. Same as !Equals(PreprocessBuildEventArgs)

    Declaration
    public static bool operator !=(PreprocessBuildEventArgs lhs, PreprocessBuildEventArgs rhs)
    Parameters
    Type Name Description
    PreprocessBuildEventArgs lhs

    The left-hand side of the comparison.

    PreprocessBuildEventArgs rhs

    The right-hand side of the comparison.

    Returns
    Type Description
    Boolean

    Returns the negation of Equals(PreprocessBuildEventArgs).

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023