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. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Load Sprite From Resource Causes Apllication Loading Failed

Discussion in 'Scripting' started by bekiryanik, Jan 28, 2017.

  1. bekiryanik

    bekiryanik

    Joined:
    Jul 6, 2014
    Posts:
    191
    Hello.

    I have around 500 sprites in my resources folder and these sprites are loaded at the begining of the game in order to count them to define number of levels. This load at the beginning of the game Causes application loading fails. It quits from application. I would like to load sprites from Resource folder slowly. It can be with Time.deltaTime. How can i load it slowly?
     
  2. bekiryanik

    bekiryanik

    Joined:
    Jul 6, 2014
    Posts:
    191
    Any idea?
     
  3. vothka

    vothka

    Joined:
    Mar 27, 2015
    Posts:
    59
    Try load it async?
     
  4. bekiryanik

    bekiryanik

    Joined:
    Jul 6, 2014
    Posts:
    191
    I will try it if it has a suck feature. Thanks for the suggestion!
     
  5. jemonsuarez

    jemonsuarez

    Joined:
    Sep 24, 2012
    Posts:
    151
  6. Eric5h5

    Eric5h5

    Volunteer Moderator Moderator

    Joined:
    Jul 19, 2006
    Posts:
    32,401
    Don't use Resources.Load with sprites. The auto-atlasing doesn't work if you do that.

    --Eric