Is there a way for variables to have a few types in GDScript

Viewed 46

I know GDScript has dynamic typing, but I was wondering if there was a way to give a variable only a few types it can have. Something like this:

var myVar : int : string = 12;
myVar = "Hello";

Does it have a feature like this?

1 Answers
Related