Search Unity

Binary data / Memory streams supported?

Discussion in 'Addressables' started by KingKRoecks, Jan 7, 2020.

  1. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    I'm looking to load and save custom objects.

    I construct data and save them out with my own serialization methods.

    Is this supported with addressables?

    So far, I've been getting invalid key exceptions and warnings that my "DefaultAssets" are being excluded.

    Does anyone know how to do this?
     
  2. KingKRoecks

    KingKRoecks

    Joined:
    Jul 28, 2013
    Posts:
    155
    Nevermind.

    I decided I'm just going to make it a build step to serialize the binary object into a ScriptableObject that can be referenced by the Addressables system.

    Seems like a flaw that I need to do this though
     
  3. ASVO

    ASVO

    Joined:
    Feb 27, 2018
    Posts:
    3
    Hi, KingKRoecks, in my case I have a binary file called "scenetable.bin", when a mark it addressable and got the Warning "Asset location with internal id xxxx.bin will be stripped." To solve this, just change the ".bin" file ext name to ".txt", unity Addressable will see it as a TextAsset, then you can Load<TextAsset>() with Addressable.
     
    Kolja_Lubitz likes this.