Code completion not working correctly

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

Code completion seems not to work for references. Any idea why?


extends Node2D

func _ready():
    var anim =
    anim.(shows no completion!)

Thanks for all your answers!

:bust_in_silhouette: Reply From: Socrates

I think this is just a limitation of dynamically typed languages. It is something like, it’s unknown what an anim is because it can be reassigned to be a completely different type of object at any time, so the program will only know what it is at runtime. Hope that helps :frowning:

That makes sense. Btw: Do you a convenient way of converting a scene to a plugin/custom node?

Footurist | 2018-02-23 02:45