How to get SecondaryTexture at runtime?

I see this structure here:

But no idea how I’m supposed to find that information from a Sprite at runtime?

The TextureImporter has references to this structure. But that doesn’t help me at runtime :frowning:

I don’t think it’s possible atm. https://forum.unity.com/threads/exposing-secondary-textures-at-runtime.975774/ I’m asking for a setter. A getter would be nice too.

See the answer using reflection