Search Unity

[bug] asset loading in resources gives incorrect asset

Discussion in 'Addressables' started by nik_d, Jun 12, 2019.

  1. nik_d

    nik_d

    Joined:
    Apr 27, 2018
    Posts:
    66
    workaround: in LegacyResourceProvider.cs Start(...):

    Code (CSharp):
    1.                 //**addressables: fix: use type request otherwise we cannot obtain f.e. Sprite (Texture2D is returned)
    2.                 //m_RequestOperation = Resources.LoadAsync<Object>(m_PI.Location.InternalId);
    3.                 m_RequestOperation = Resources.LoadAsync(m_PI.Location.InternalId, m_PI.Type);
    4.