Topic was automatically imported from the old Question2Answer platform.
Asked By
svsdval
why when I try to autocomplete in gdscript ( example: get_node(“.”). ) , I get only 3 possible functions ( _init(),_process(),_ready()) but no showed get_scale, get_translation,get_transform and etc… ?
extends Spatial
func _ready():
pass
func _process(delta):
var n = get_node(".");
#n. ??????? or get_node("."). why empty ?
get_node(".").set_scale( Vector3(1,1,1) * abs( sin ( OS.get_ticks_msec() *0.005)) )
You don’t get get_scale() or get_translation() because since Godot 3, the preferred way is to use property instead. So getters and setters of those properties were hidden to avoid confusion. You should be able to see .scale and .translation for example.