Search Unity

Does TextAsset (.bytes) loadable with Addressables?

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

  1. 5argon

    5argon

    Joined:
    Jun 10, 2013
    Posts:
    1,555
    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.