Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Do particle system material texture not preload when you load the prefab?

Discussion in 'General Graphics' started by denlee0710, Jun 17, 2021.

  1. denlee0710

    denlee0710

    Joined:
    Mar 9, 2015
    Posts:
    36
    Hello all,

    I have particle system GameObject prefab(store bought asset), that even when in editor play mode, causes a sceen hiccup the first time this prefab is instantiated.

    I suspect it has something to do with one of the effect that uses texture sheet animation. The texture in question is 2.7MB. This prefab in question is directly referenced in a ScriptableObject, and the SO was loaded using a Resources.Load call. Hiccup only happens during the instantiate call, which happens some time after the recource.load call.

    Don't all the depencies of an asset gets loaded when you call resources.load?

    I've thought of a solution involving pre instantiating it during load and hide it somewhere until I need it. But it's not feasible when the amount of particle effects textures that "could" be load in a scene gets bigger.
     
    Yuki001cn likes this.