docs.unity3d.com
    目次を表示する/隠す

    Method CreateResult

    CreateResult<TResult>(String, Int32, 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

    Int32 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
    トップに戻る
    Copyright © 2023 Unity Technologies — 商標と利用規約
    • 法律関連
    • プライバシーポリシー
    • クッキー
    • 私の個人情報を販売または共有しない
    • Your Privacy Choices (Cookie Settings)