docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CreateResult

    CreateResult<TResult>(string, int, string)

    Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario.

    Declaration
    public static TResult CreateResult<TResult>(string settingsPath, int locCount, string err = "") where TResult : IDataBuilderResult
    Parameters
    Type Name Description
    string settingsPath

    Path to the settings.json file (name may not always match that exactly) generated by this build

    int locCount

    Number of locations created by this build

    string err

    Error string if there were problems with the build. Defaults to empty

    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult

    The actual build result created

    CreateResult<TResult>()

    Helper method to create the desired result of a data builder. This should always be used to create the build result with additional details added as needed. The Result.Duration should always be set at the end of the build script in the non-error scenario. Other results should be set as available.

    Declaration
    public static TResult CreateResult<TResult>() where TResult : IDataBuilderResult
    Returns
    Type Description
    TResult
    Type Parameters
    Name Description
    TResult
    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)