why not work auto complete for setter and getter?

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

i using raycast node.
but i can not show is_colliding().

extends Camera
var ray_cast
func _ready():
	ray_cast = get_node("RayCast")
	
func _process(delta):
	if ray_cast.is_colliding():
		print("hit")

i checked “autocomplete setter and getter” in project setting.
and i restarted godot.

but does not work.do you understand this reason?
i use godot3.1.1

:bust_in_silhouette: Reply From: Dlean Jeans

RayCast.is_colliding() is not a getter or setter.
You can use Static typing to get autocomplete:

var ray_cast:RayCast

thanks for comment.
what is node type of variable?

extends Camera

var node :Object= null

func _ready():
	node = get_node("RayCast")
	
func _process(delta):
	node.

is_collision() function not show with Object type.

bgegg | 2019-06-16 09:58