gd-wireportal-full/learning-rust4.4/addons/godot-ndi/demo/AnimationOutput.tscn
2025-03-17 08:06:23 +01:00

58 lines
1.6 KiB
Text

[gd_scene load_steps=5 format=3 uid="uid://p6ywmqtt7nke"]
[ext_resource type="Texture2D" uid="uid://cfvxj5cdj3n45" path="res://addons/godot-ndi/demo/icon.svg" id="1_ekn6m"]
[sub_resource type="Animation" id="Animation_62e2m"]
length = 0.001
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0),
"transitions": PackedFloat32Array(1),
"update": 0,
"values": [Vector2(1034, 527)]
}
[sub_resource type="Animation" id="Animation_0fbet"]
resource_name = "new_animation"
length = 8.0
loop_mode = 1
tracks/0/type = "value"
tracks/0/imported = false
tracks/0/enabled = true
tracks/0/path = NodePath("Icon:position")
tracks/0/interp = 1
tracks/0/loop_wrap = true
tracks/0/keys = {
"times": PackedFloat32Array(0, 3.9627, 7.9587),
"transitions": PackedFloat32Array(1, 1, 1),
"update": 0,
"values": [Vector2(116, 119), Vector2(1034, 527), Vector2(116, 119)]
}
[sub_resource type="AnimationLibrary" id="AnimationLibrary_ee4bf"]
_data = {
&"RESET": SubResource("Animation_62e2m"),
&"new_animation": SubResource("Animation_0fbet")
}
[node name="SubViewport" type="Node2D"]
[node name="NDIOutput" type="NDIOutput" parent="."]
name = "Godot (Animation)"
[node name="Icon" type="Sprite2D" parent="."]
position = Vector2(1034, 527)
scale = Vector2(1.463, 1.463)
texture = ExtResource("1_ekn6m")
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
libraries = {
&"": SubResource("AnimationLibrary_ee4bf")
}
autoplay = "new_animation"