Class BuildHelper
Class with helper methods for interacting with the build process.
Inherited Members
Namespace: UnityEditor.XR.ARSubsystems
Assembly: Unity.XR.ARSubsystems.Editor.dll
Syntax
public static class BuildHelper
Methods
AddBackgroundShaderToProject(string)
Adds a background shader with the given name to the project as a preloaded asset.
Declaration
public static void AddBackgroundShaderToProject(string shaderName)
Parameters
Type | Name | Description |
---|---|---|
string | shaderName | The name of a shader to add to the project. |
Exceptions
Type | Condition |
---|---|
BuildFailedException | Thrown if a shader with the given name cannot be found. |
RemoveShaderFromProject(string)
Removes a shader with the given name from the preloaded assets of the project.
Declaration
public static void RemoveShaderFromProject(string shaderName)
Parameters
Type | Name | Description |
---|---|---|
string | shaderName | The name of a shader to remove from the project. |
Exceptions
Type | Condition |
---|---|
BuildFailedException | Thrown if a shader with the given name cannot be found. |