Search Unity

Texture.AwakeFromLoad spike

Discussion in 'General Graphics' started by Lesha-VH, Mar 18, 2018.

  1. Lesha-VH

    Lesha-VH

    Joined:
    Jul 3, 2012
    Posts:
    96
    I have GameObject with Sprite component, assign a big texture

    In Start() method I call gameObject.SetActive(false)

    when games run and gameObject.SetActive(true) was called huge spike (300ms) occured
    Profile Editor gives:
    Texture.AwakeFromLoad
    generate spike

    If I did not call gameObject.SetActive(false) all is OK

    Is it normal behavior or this can be bug?

    Unity 2017.1.3p1