docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class BuildHelper

    Class with helper methods for interacting with the build process.

    Inheritance
    object
    BuildHelper
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    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.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)