docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SwitchToBuildPlatform

    Sets the target build platform based on the build parameters.

    Inheritance
    object
    SwitchToBuildPlatform
    Implements
    IBuildTask
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.Build.Pipeline.Tasks
    Assembly: Unity.ScriptableBuildPipeline.Editor.dll
    Syntax
    public class SwitchToBuildPlatform : IBuildTask

    Properties

    Version

    Version identifier for the build task. Primarily for caching.

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    int

    Methods

    Run()

    Run task method

    Declaration
    public ReturnCode Run()
    Returns
    Type Description
    ReturnCode

    Return code with status information about success or failure causes.

    Implements

    IBuildTask
    In This Article
    Back to top
    Copyright © 2025 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)