Files
godot-demo-projects/viewport/split_screen_input/split_screen_demo.tscn
Markus Sauermann 10eb2807b8 Add Split Screen Demo showing input handling (#1023)
* Add Split Screen Demo showing input handling

* Style fixes, layout improvements, update to Godot 4.5

---------

Co-authored-by: Aaron Franke <arnfranke@yahoo.com>
2025-10-01 22:56:48 -07:00

74 lines
1.8 KiB
Plaintext

[gd_scene load_steps=3 format=3 uid="uid://ccutmhshaoqih"]
[ext_resource type="Script" uid="uid://bdikev0kwlu1g" path="res://root.gd" id="1_2itit"]
[ext_resource type="PackedScene" uid="uid://dqailbm8vcpf5" path="res://split_screen.tscn" id="1_mcbdt"]
[node name="Node" type="Node"]
script = ExtResource("1_2itit")
[node name="Panel" type="Panel" parent="."]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
mouse_filter = 2
[node name="SplitScreen1" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -375.0
offset_top = -387.0
offset_right = -25.0
offset_bottom = -13.0
grow_horizontal = 2
grow_vertical = 2
[node name="SplitScreen2" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 25.0
offset_top = -387.0
offset_right = 375.0
offset_bottom = -13.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(132, 0)
[node name="SplitScreen3" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = -375.0
offset_top = 13.0
offset_right = -25.0
offset_bottom = 387.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(0, 132)
[node name="SplitScreen4" parent="." instance=ExtResource("1_mcbdt")]
anchors_preset = -1
anchor_left = 0.5
anchor_top = 0.5
anchor_right = 0.5
anchor_bottom = 0.5
offset_left = 25.0
offset_top = 13.0
offset_right = 375.0
offset_bottom = 387.0
grow_horizontal = 2
grow_vertical = 2
init_position = Vector2(132, 132)
[node name="PlayArea" type="SubViewport" parent="."]
render_target_update_mode = 4