Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    Dismiss Notice

Is Resources.LoadAll broken in Preview2?

Discussion in '2D Experimental Preview' started by Xelnath, Sep 6, 2016.

  1. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    402
    I just upgraded from Preview1 to Preview2 - and in so doing, Resources.LoadAll<TextAsset>("Records") is no longer returning a list of objects correctly.

    For clarity, I have created a bunch of JSON files (reading them via SimpleJSON) inside Resources/Records/ called MonsterA.record, MonsterB.record, etc.

    However, when I run LoadAll... no objects are returned... but this worked in Preview 1.
     
    Last edited: Sep 6, 2016
  2. Xelnath

    Xelnath

    Joined:
    Jan 31, 2015
    Posts:
    402
    Nevermind... I just realized LoadAll() won't work unless a file is named .txt or another extension unity recognizes. How annoying.