Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.

Question wanna fix freezing when instantiating

Discussion in 'Getting Started' started by Bonnate, Nov 24, 2022.

  1. Bonnate


    May 30, 2021
    A problem occurred while creating a non-game program in Unity.
    When certain conditions occur, we need to instantiate a prefab like the image below during runtime.
    However, this prefab is quite heavy and the game freezes for a while until it finishes loading.

    Is there any way to instantiate a heavy prefab in Unity without stopping for a while?

    Object pooling techniques are not suitable. For memory management, only one prefab like the one below should appear.