godot-psd-training/sceen/platform/psl.tscn

51 lines
1.8 KiB
Plaintext
Raw Normal View History

[gd_scene load_steps=6 format=3 uid="uid://d0lqunjq25ro8"]
2024-04-22 15:32:19 +08:00
[ext_resource type="Script" path="res://sceen/platform/PSL_Area3D.gd" id="1_5mk24"]
[ext_resource type="Script" path="res://sceen/platform/psl.gd" id="1_fwlhs"]
[ext_resource type="PackedScene" uid="uid://sboj8u74lbum" path="res://Model/psl.blend" id="3_4k1s7"]
2024-04-22 15:32:19 +08:00
[sub_resource type="BoxShape3D" id="BoxShape3D_lh1kl"]
size = Vector3(0.224365, 0.0963135, 0.103912)
2024-04-22 15:32:19 +08:00
[sub_resource type="ViewportTexture" id="ViewportTexture_3lap2"]
viewport_path = NodePath("SubViewport")
[node name="PSL" type="Node3D"]
script = ExtResource("1_fwlhs")
[node name="PSL_body" parent="." instance=ExtResource("3_4k1s7")]
2024-04-22 15:32:19 +08:00
metadata/_edit_lock_ = true
[node name="PSL_Area3D" type="Area3D" parent="PSL_body"]
script = ExtResource("1_5mk24")
[node name="CollisionShape3D" type="CollisionShape3D" parent="PSL_body/PSL_Area3D"]
transform = Transform3D(1, 0, 0, 0, 1, 0, 0, 0, 1, -9.41262, 2.38976, 1.75505)
shape = SubResource("BoxShape3D_lh1kl")
2024-04-22 15:32:19 +08:00
[node name="SubViewport" type="SubViewport" parent="."]
size = Vector2i(64, 32)
[node name="ColorRect" type="ColorRect" parent="SubViewport"]
offset_right = 64.0
offset_bottom = 32.0
color = Color(0, 0.0901961, 1, 1)
[node name="Label" type="Label" parent="SubViewport"]
anchors_preset = 15
anchor_right = 1.0
anchor_bottom = 1.0
grow_horizontal = 2
grow_vertical = 2
theme_override_font_sizes/font_size = 32
text = "PSL"
horizontal_alignment = 1
vertical_alignment = 1
[node name="Sprite3D" type="Sprite3D" parent="."]
transform = Transform3D(0.256, 0, 0, 0, 0.256, 0, 0, 0, 0.256, -9.41159, 2.37999, 1.78259)
2024-04-22 15:32:19 +08:00
texture = SubResource("ViewportTexture_3lap2")
[connection signal="mouse_entered" from="PSL_body/PSL_Area3D" to="PSL_body/PSL_Area3D" method="_on_mouse_entered"]
[connection signal="mouse_exited" from="PSL_body/PSL_Area3D" to="PSL_body/PSL_Area3D" method="_on_mouse_exited"]