Class MagicLeapBuildProcessor
Build processor for Magic Leap Main entry point for setting up, generating Gradle projects and deployable binaries.
Inherited Members
Namespace: UnityEditor.XR.MagicLeap
Syntax
public class MagicLeapBuildProcessor : IPreprocessBuildWithReport, IPostprocessBuildWithReport, IPostGenerateGradleAndroidProject, IOrderedCallback
Properties
callbackOrder
Overridden from IOrderedCallback. Returns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values.
Declaration
public int callbackOrder { get; }
Property Value
Type | Description |
---|---|
Int32 |
Implements
Methods
OnPostGenerateGradleAndroidProject(String)
Overridden from IPostGenerateGradleAndroidProject. Callback hook that is called after the Android Gradle project is generated, but before the build starts.
Declaration
public void OnPostGenerateGradleAndroidProject(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | The path to the root of the Unity Library Gradle project. |
Implements
OnPostprocessBuild(BuildReport)
Overridden from IPostprocessBuildWithReport. Callback hook that is called after a successful build.
Declaration
public void OnPostprocessBuild(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | Report containing information about the build. |
Implements
OnPreprocessBuild(BuildReport)
Overridden from IPreprocessBuildWithReport. Callback hook to perform operations before the build starts.
Declaration
public void OnPreprocessBuild(BuildReport report)
Parameters
Type | Name | Description |
---|---|---|
BuildReport | report | Report containing information about the build. |
Implements
ShouldIncludeRemotingPluginsInBuild(String)
Remoting is only intended to work in the editor so builds are disallowed to have the libraries
Declaration
public bool ShouldIncludeRemotingPluginsInBuild(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Unused |
Returns
Type | Description |
---|---|
Boolean | Always returns false |
ShouldIncludeRuntimePluginsInBuild(String)
Check to see if we should include Runtime Plugins for non-Magicleap builds
Declaration
public bool ShouldIncludeRuntimePluginsInBuild(string path)
Parameters
Type | Name | Description |
---|---|---|
String | path | Unused |
Returns
Type | Description |
---|---|
Boolean | Return false for MagicLeap supported platforms. True otherwise. |