docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PreBuild

    Set the player aspect ratio and resolution before the build

    Inheritance
    object
    PreBuild
    Implements
    IPreprocessBuildWithReport
    IOrderedCallback
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEditor.TestTools.Graphics
    Assembly: UnityEditor.TestTools.Graphics.dll
    Syntax
    public class PreBuild : IPreprocessBuildWithReport, IOrderedCallback

    Properties

    callbackOrder

    Returns the relative callback order for callbacks. Callbacks with lower values are called before ones with higher values.

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

    Methods

    OnPreprocessBuild(BuildReport)

    Implement this function to receive a callback before the build is started.

    Declaration
    public void OnPreprocessBuild(BuildReport report)
    Parameters
    Type Name Description
    BuildReport report

    A report containing information about the build, such as its target platform and output path.

    Implements

    IPreprocessBuildWithReport
    IOrderedCallback
    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)