docs.unity.cn
    Show / Hide Table of Contents

    Interface IBuildable<TRuntimeObject>

    Contract for object that can create new instances of a TRuntimeObject.

    Namespace: UnityEngine.GameFoundation.Configs
    Syntax
    public interface IBuildable<TRuntimeObject>
    Type Parameters
    Name Description
    TRuntimeObject

    The type of object to create.

    Methods

    Compile()

    Create a new TRuntimeObject.

    Declaration
    Deferred<TRuntimeObject> Compile()
    Returns
    Type Description
    Deferred<TRuntimeObject>

    Return a promise handle to report how the operation went. The handle's result is the compiled item if the compilation was successful.

    Link(TRuntimeObject, Dictionary<String, CatalogItem>)

    Resolves the references from the given runtimeObject using the given compiledItems.

    Declaration
    Deferred Link(TRuntimeObject runtimeObject, Dictionary<string, CatalogItem> compiledItems)
    Parameters
    Type Name Description
    TRuntimeObject runtimeObject

    The runtime object to update references of.

    Dictionary<String, CatalogItem> compiledItems

    The collection of existing catalog items where references can be found.

    Returns
    Type Description
    Deferred

    Return a promise handle to report how the operation went.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 16 June 2021