Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice
  4. Dismiss Notice

Does TextAsset (.bytes) loadable with Addressables?

Discussion in 'Addressables' started by 5argon, Sep 25, 2018.

  1. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,554
    I have `AssetReference` assigned with a .byte file where previously I load through Resources.Load<TextAsset>(path) then get the binary of it via `.bytes`.

    However when I do `aref.LoadAsset<TextAsset>()` the result is null.

    Is TextAsset unsupported? How to load the addressed .byte file? The .byte file is already in the Addressables panel's default group automatically when I link the file to the `AssetReference` field.

    EDIT : It seems to be my debugging error, TextAsset is in fact supported. (Please add a feature to remove threads?)
     
    Last edited: Sep 25, 2018
    yuch3n and SquashSesame like this.
  2. yuch3n

    yuch3n

    Joined:
    Sep 26, 2018
    Posts:
    26
    Don't delete the thread, I didn't know that binary TextAssets were supported by Addressables until I found this post! So this was actually useful :)
     
    Aleksei-Laser likes this.