how to hide MINUS, RESET, PLUS SNAP and ZOOM Control's in a GraphEdit?

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

i try this:
$GraphEdit.get_child(0).get_child(2).visible = false
it worked.

but next time i run the game, it went wrong.

cos i found out:

Graphedit.children some time is [[Control:1962], [GraphEditFilter:1961]]
but sometime is [[GraphEditFilter:1961],[Control:1962]]

and i try to do:
for c in Graphedit.children():
if c is GraphEditFilter:# godot seems can’t know what is GraphEditFilter

what can i do?
i’m new to godot and coding, thanks!

:bust_in_silhouette: Reply From: jgodfrey

You can hide the entire control set like this:

$GraphEdit.get_zoom_hbox().visible = false

thanks! you save me!

huahuapro | 2020-03-11 07:46