[gd_scene load_steps=8 format=3 uid="uid://crstqa7v6ehg3"]

[ext_resource type="Script" path="res://OQ_Toolkit/OQ_UI2D/scripts/OQ_UI2DCanvas.gd" id="1"]
[ext_resource type="Script" path="res://OQ_Toolkit/OQ_UI2D/scripts/helper_UIArea.gd" id="2"]
[ext_resource type="Script" path="res://OQ_Toolkit/OQ_UI2D/scripts/update_viewport_once.gd" id="3_2prlg"]

[sub_resource type="BoxShape3D" id="1"]
margin = 0.001
size = Vector3(1, 1, 0.001)

[sub_resource type="ViewportTexture" id="ViewportTexture_ikmp1"]
viewport_path = NodePath("SubViewport")

[sub_resource type="StandardMaterial3D" id="3"]
resource_local_to_scene = true
cull_mode = 2
shading_mode = 0
albedo_texture = SubResource("ViewportTexture_ikmp1")

[sub_resource type="PlaneMesh" id="4"]
resource_local_to_scene = true
size = Vector2(1, 1)

[node name="OQ_UI2DCanvas" type="Node3D"]
script = ExtResource("1")
update_only_on_input = true

[node name="SubViewport" type="SubViewport" parent="."]
disable_3d = true
own_world_3d = true
transparent_bg = true
gui_embed_subwindows = true
size = Vector2i(512, 256)
render_target_update_mode = 3

[node name="UIArea" type="Area3D" parent="."]
collision_layer = 2
collision_mask = 0
monitoring = false
monitorable = false
script = ExtResource("2")

[node name="UICollisionShape" type="CollisionShape3D" parent="UIArea"]
shape = SubResource("1")

[node name="UIMeshInstance" type="MeshInstance3D" parent="UIArea"]
transform = Transform3D(1, 0, 0, 0, -4.37114e-08, -1, 0, -1, 4.37114e-08, 0, 0, 0)
layers = 3
material_override = SubResource("3")
mesh = SubResource("4")

[node name="update_once" type="Node" parent="."]
script = ExtResource("3_2prlg")
