#how to make Variant type "known"

10 messages · Page 1 of 1 (latest)

silver geode
#

How can I make this "type-safe"? or any form of Variant even

thick cypress
#

You probably can't

silver geode
#

okay, is there a chance anyone else has a more certain answer?

real falcon
plain nacelle
#

I'm pretty sure you can just var gravity : float = foo();

#

But probably in this instance project setting will return a variant because its unknown which part of the settings you're accessing so it could be anything

silver geode
silver geode
#

clamp also causes a similar issue as there are no generics to define its return type

silent steppe