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.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question wanna fix freezing when instantiating

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

  1. Bonnate

    Bonnate

    Joined:
    May 30, 2021
    Posts:
    5
    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.