Hide receptors by default outside of editor
This commit is contained in:
parent
448cf998b0
commit
73c774cc73
|
@ -144,17 +144,9 @@ func set_receptor_positions(skew:=0.0):
|
||||||
func _ready():
|
func _ready():
|
||||||
set_receptor_positions()
|
set_receptor_positions()
|
||||||
update_ring_mesh()
|
update_ring_mesh()
|
||||||
# $"../InputHandler/VerticesSlider".connect("value_changed", self, "set_ring_vertex_count")
|
set_alpha(float(Engine.editor_hint))
|
||||||
# $"../InputHandler/SkewSlider".connect("value_changed", self, "set_ring_skew")
|
|
||||||
$"/root".connect("size_changed", self, "update")
|
$"/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):
|
func set_alpha(a):
|
||||||
alpha = a
|
alpha = a
|
||||||
material.set_shader_param("alpha", alpha)
|
material.set_shader_param("alpha", alpha)
|
||||||
|
|
Loading…
Reference in New Issue