[gd_scene load_steps=4 format=3 uid="uid://c1qli4f05orxk"]

[ext_resource type="Script" path="res://dev-util/click-trough-area.gd" id="1_p7a7n"]

[sub_resource type="BoxShape3D" id="BoxShape3D_cb3g8"]

[sub_resource type="ViewportTexture" id="ViewportTexture_yre71"]
viewport_path = NodePath("Area3D/Sprite3D/SubViewport")

[node name="Area3D" type="Area3D"]
transform = Transform3D(1, 0, 0, 0, 0.999999, 0, 0, 0, 1, 0, 0, 0)
script = ExtResource("1_p7a7n")

[node name="CollisionShape3D" type="CollisionShape3D" parent="."]
transform = Transform3D(2.56, 0, 0, 0, 2.56, 0, 0, 0, 2.56, 0, 0, -1.28)
shape = SubResource("BoxShape3D_cb3g8")

[node name="CSGBox3D" type="CSGBox3D" parent="."]
transform = Transform3D(0.99, 0, 0, 0, 0.99, 0, 0, 7.45058e-09, 0.99, 0, 1.49012e-08, -1.28)
size = Vector3(2.56, 2.56, 2.56)

[node name="Sprite3D" type="Sprite3D" parent="."]
texture = SubResource("ViewportTexture_yre71")

[node name="SubViewport" type="SubViewport" parent="Sprite3D"]
size = Vector2i(256, 256)

[node name="LineEdit" type="LineEdit" parent="Sprite3D/SubViewport"]
offset_left = 32.0
offset_top = 32.0
offset_right = 99.0625
offset_bottom = 63.0

[node name="Button" type="Button" parent="Sprite3D/SubViewport"]
offset_left = 50.0
offset_top = 100.0
offset_right = 112.0
offset_bottom = 131.0
text = "Button"

[connection signal="input_event" from="." to="." method="_on_input_event"]
[connection signal="text_submitted" from="Sprite3D/SubViewport/LineEdit" to="." method="_on_line_edit_text_submitted"]
[connection signal="pressed" from="Sprite3D/SubViewport/Button" to="." method="_on_button_pressed"]
