Search Unity

  1. We are migrating the Unity Forums to Unity Discussions. On July 12, the Unity Forums will become read-only. On July 15, Unity Discussions will become read-only until July 18, when the new design and the migrated forum contents will go live. Read our full announcement for more information and let us know if you have any questions.

Resources.load

Discussion in 'Project Tiny' started by dallin_unity, Mar 23, 2021.

  1. dallin_unity

    dallin_unity

    Joined:
    Dec 18, 2019
    Posts:
    40
    Hi guys, I'm trying to get resources at runtime, something similar to Resources.load, have tiny supported this yet?
    Many thanks
     
  2. AbdulAlgharbi

    AbdulAlgharbi

    Unity Technologies

    Joined:
    Jul 27, 2018
    Posts:
    319
    You can use
    AsyncOp and IOService in Unity.Tiny.IO
    to read files and load them into the runtime
    We will share a new sample showing how to do that with Tiny 0.33 later this month
     
    dallin_unity likes this.
  3. dallin_unity

    dallin_unity

    Joined:
    Dec 18, 2019
    Posts:
    40
    Thanks so much, I will try that
     
  4. Goularou

    Goularou

    Joined:
    Oct 19, 2018
    Posts:
    54
    Hello,
    What happen to the sample: this would be really useful as my call of IOService.RequestAsyncRead.
    Indeed, I get a "FileNotFound" failure error from it when using "Assets/Resources/xyz.txt"
    We just need the right synthax for calling items in the resources folder.
    Thanks in advance.
     
    Last edited: Oct 4, 2021
  5. GilCat

    GilCat

    Joined:
    Sep 21, 2013
    Posts:
    676
    You must copy those files to your output build folder.
     
  6. Goularou

    Goularou

    Joined:
    Oct 19, 2018
    Posts:
    54
    That does not work for a HTML end product. But I worked long hours yesterday on YOUR product: https://github.com/GilbertoGojira/TinyAssetLoader
    And this works like a charm!
    Thanks for your work:):):)
     
    m4d and GilCat like this.