Class OpenXRFeatureBuildHooks
Inherit from this class to get callbacks to hook into the build process when your OpenXR Extension is enabled.
Inherited Members
Namespace: UnityEditor.XR.OpenXR.Features
Syntax
public abstract class OpenXRFeatureBuildHooks : IPostGenerateGradleAndroidProject, IPostprocessBuildWithReport, IPreprocessBuildWithReport, IOrderedCallback
Properties
callbackOrder
Returns the current callback order for build processing.
Declaration
public abstract int callbackOrder { get; }
Property Value
Type | Description |
---|---|
Int32 | Int value denoting the callback oarder. |
Implements
featureType
System.Type of the class that implements OpenXRFeature.
Declaration
public abstract Type featureType { get; }
Property Value
Type | Description |
---|---|
Type |
Methods
OnPostGenerateGradleAndroidProject(String)
Post process build step for checking if a feature is enabled for android builds. If so will call to the feature to run their build post processing for android builds.
Declaration
public virtual void OnPostGenerateGradleAndroidProject(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Path to gradle project. |
Implements
OnPostGenerateGradleAndroidProjectExt(String)
Called during build process when extension is enabled. Implement this function to receive a callback after the Android Gradle project is generated and before building begins. Function is not called for Internal builds.
Declaration
protected abstract void OnPostGenerateGradleAndroidProjectExt(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to the root of the Gradle project. Note: When exporting the project, this parameter holds the path to the folder specified for export. |
OnPostprocessBuild(BuildReport)
Pre-process build step for checking if a feature is enabled. If so will call to the feature to run their build post processing.
Declaration
public virtual void OnPostprocessBuild(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | Build report. |
Implements
OnPostprocessBuildExt(BuildReport)
Called during the build process when extension is enabled. Implement this function to receive a callback after the build is complete.
Declaration
protected abstract void OnPostprocessBuildExt(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | BuildReport that contains information about the build, such as the target platform and output path. |
OnPreprocessBuild(BuildReport)
Post process build step for checking if a feature is enabled. If so will call to the feature to run their build pre processing.
Declaration
public virtual void OnPreprocessBuild(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | Build report. |
Implements
OnPreprocessBuildExt(BuildReport)
Called during the build process when the feature is enabled. Implement this function to receive a callback before the build starts.
Declaration
protected abstract void OnPreprocessBuildExt(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | Report that contains information about the build, such as its target platform and output path. |