docs.unity3d.com
    Show / Hide Table of Contents

    Class BuildHelper

    Class with helper methods for interacting with the build process.

    Inheritance
    Object
    BuildHelper
    Inherited Members
    Object.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEditor.XR.ARSubsystems
    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
    UnityEditor.Build.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
    UnityEditor.Build.BuildFailedException

    Thrown if a shader with the given name cannot be found.

    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