How do I dynamically make variables inside of a loop?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By Sinowa-Programming

I know you can do this is python ,but i haven’t been able to do it in gdscript.
Thank you for any help!

:bust_in_silhouette: Reply From: Lopy

The closest to the Python way is using the “meta” functions, set_meta, get_meta, etc.
Note however that those are Object functions, meaning they will not work on non-objects, like Vector2/3, Color, etc. To know if a type inherits Object, you can write it in your code, and ctrl+click on it, giving you it’s documentation.

Are there any tutorials to help me with this?

Sinowa-Programming | 2021-01-08 00:28