Referencing module variables using an alternative notation

Problem:
I am amking a game that requires a few textures in a lot of editable classes, textures currently aren’t compatible with the editable tag so it’s very messy and hard to reference them to classes.
What I’m doing currently is making a huge list of these textures manually and then reference them by ID, it works but it gets messy very quickly.


What I’m asking is if there’s another way to reference these textures directly from the asset file dynamically. For example some other languages have a string notation that would make this very easy to solve: ColorTex := Colors["_{Num}color"]
This way I can reference all of these textures with a simple loop and some logic, boiling down to this:
image

Question:
So the question is, Is there another way of referencing child variables without referencing it directly? In other words, I want to know if there’s an alternative to the dot notation that can be used dynamically.

Dynamic variable referencing is not a thing in Verse unf, but I’m sure they’ll expose the texture type to the engine someday :slight_smile:

1 Like