Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Automatically setting up custom address in asset when the Addressable check box is checked.

Discussion in 'Addressables' started by LarsGameloft, Aug 8, 2019.

  1. LarsGameloft

    LarsGameloft

    Joined:
    Jun 4, 2019
    Posts:
    31
    FOUND SOLUTION. :)

    Hi, here is what I am trying to do:
    - If a user checks the addressable checkbox in an asset, I want to intercept this call and set the address to the GUID
    - No matter where the asset is moved every time you check or recheck the addressables checkbox I want to intercept the call and set it to GUID.

    The reason:
    - We have tools that build data files with info about our assets that,besides many things, save the asset addressable address for later use by our code.
    - If a designer/artist decides to move the asset to a different directory and rechecks the addressables checkbox, at the moment this address will change to the path of the asset, breaking the link our tool already created.
    -Using the GUID will improve this situation. Still the address could still be changed manually but that is something less likely.
    - We want to avoid people messing up things and coming over to ask whats happening as much as possible :)


    Is this possible at the moment?

    Thank you.
     
    Last edited: Aug 8, 2019
    xucian and unity_bill like this.
  2. LarsGameloft

    LarsGameloft

    Joined:
    Jun 4, 2019
    Posts:
    31
    Last edited: Aug 8, 2019
    unity_bill likes this.