docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method ProvideInstance

    ProvideInstance(ResourceManager, AsyncOperationHandle<GameObject>, InstantiationParameters)

    Provide an instance of the gameobject contained in the prefabHandle.

    Declaration
    GameObject ProvideInstance(ResourceManager resourceManager, AsyncOperationHandle<GameObject> prefabHandle, InstantiationParameters instantiateParameters)
    Parameters
    Type Name Description
    ResourceManager resourceManager

    The object that contains all the resource locations.

    AsyncOperationHandle<GameObject> prefabHandle

    The operation handle for the prefab to instantiate.

    InstantiationParameters instantiateParameters

    The parameters to use for instantation.

    Returns
    Type Description
    GameObject

    The instantiated object.

    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)