docs.unity3d.com
    Show / Hide Table of Contents

    Class CreateMonoScriptBundle

    Optional build task that extracts all referenced MonoScripts and assigns them to the specified bundle

    Inheritance
    Object
    CreateMonoScriptBundle
    Namespace: UnityEditor.Build.Pipeline.Tasks
    Syntax
    public class CreateMonoScriptBundle : object, IBuildTask

    Constructors

    CreateMonoScriptBundle(String)

    Create the MonoScript bundle.

    Declaration
    public CreateMonoScriptBundle(string bundleName)
    Parameters
    Type Name Description
    String bundleName

    The name of the bundle.

    Properties

    MonoScriptBundleName

    Stores the name for the MonoScript bundle.

    Declaration
    public string MonoScriptBundleName { get; set; }
    Property Value
    Type Description
    String

    Version

    Version identifier for the build task. Primarily for caching.

    Declaration
    public int Version { get; }
    Property Value
    Type Description
    Int32
    Implements
    IBuildTask.Version

    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.Run()
    In This Article
    • Constructors
      • CreateMonoScriptBundle(String)
    • Properties
      • MonoScriptBundleName
      • Version
    • Methods
      • Run()
    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