From 73c774cc7386afbb07363850612823b6fae12bf2 Mon Sep 17 00:00:00 2001 From: Luke Hubmayer-Werner Date: Fri, 8 Jan 2021 00:51:29 +1030 Subject: [PATCH] Hide receptors by default outside of editor --- scripts/Receptors.gd | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/scripts/Receptors.gd b/scripts/Receptors.gd index 9e3e2c5..f1bee49 100644 --- a/scripts/Receptors.gd +++ b/scripts/Receptors.gd @@ -144,17 +144,9 @@ func set_receptor_positions(skew:=0.0): func _ready(): set_receptor_positions() update_ring_mesh() -# $"../InputHandler/VerticesSlider".connect("value_changed", self, "set_ring_vertex_count") -# $"../InputHandler/SkewSlider".connect("value_changed", self, "set_ring_skew") + set_alpha(float(Engine.editor_hint)) $"/root".connect("size_changed", self, "update") -#func _process(delta): -# update() -# pass -# if not Engine.editor_hint: -# set_receptor_positions(sin(OS.get_ticks_msec()*0.001*0.0125*PI)*PI) -# update() - func set_alpha(a): alpha = a material.set_shader_param("alpha", alpha)