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

FOUND SOLUTION. :slight_smile:

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 :slight_smile:

Is this possible at the moment?

Thank you.

2 Likes

I think I could use OnModificationGlobal and when I get an EntryCreated or EntryModified event I can enforce the address to be GUID, I need to try it…

And yes it works. Here is a similar example:

1 Like