Search Unity

  1. The 2022.1 beta is now available for testing. To find out what's new, have a look at our 2022.1 beta blog post.
    Dismiss Notice

Resources.load

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

  1. dallin_unity

    dallin_unity

    Joined:
    Dec 18, 2019
    Posts:
    38
    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:
    38
    Thanks so much, I will try that
     
  4. Goularou

    Goularou

    Joined:
    Oct 19, 2018
    Posts:
    9
    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:
    670
    You must copy those files to your output build folder.
     
  6. Goularou

    Goularou

    Joined:
    Oct 19, 2018
    Posts:
    9
    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.
unityunity