Struct PreprocessBuildEventArgs
Event arguments for the OnPreprocessBuild(PreprocessBuildEventArgs) event.
Implements
Inherited Members
Namespace: UnityEditor.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.Editor.dll
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 |
---|---|---|
BuildTarget | buildTarget | The build target which is being built. |
IReadOnlyList<XRLoader> | activeLoadersForBuildTarget | The collection of active
XRLoaders enabled for |
Properties
activeLoadersForBuildTarget
The collection of active XRLoaders enabled for buildTarget.
Declaration
public 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 BuildTarget buildTarget { get; }
Property Value
Type | Description |
---|---|
BuildTarget |
Methods
Equals(object)
Tests for equality.
Declaration
public override bool Equals(object obj)
Parameters
Type | Name | Description |
---|---|---|
object | obj | The |
Returns
Type | Description |
---|---|
bool |
|
Overrides
Equals(PreprocessBuildEventArgs)
Tests for equality.
Declaration
public bool Equals(PreprocessBuildEventArgs other)
Parameters
Type | Name | Description |
---|---|---|
PreprocessBuildEventArgs | other | The event args to compare for equality. |
Returns
Type | Description |
---|---|
bool |
|
GetHashCode()
Computes a hash code from all properties suitable for use in a Dictionary
or HashSet
.
Declaration
public override int GetHashCode()
Returns
Type | Description |
---|---|
int | Returns a hashcode of this object. |
Overrides
Operators
operator ==(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 |
---|---|
bool | Returns the same value as Equals(PreprocessBuildEventArgs). |
operator !=(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 |
---|---|
bool | Returns the negation of Equals(PreprocessBuildEventArgs). |