iFactory.Godot/BITKit/Scripts/Video/VideoPlayer.cs

16 lines
210 B
C#
Raw Normal View History

2023-07-18 16:42:33 +08:00
using Godot;
using System;
namespace BITKit;
public partial class VideoPlayer : VideoStreamPlayer
{
[Export] private bool loop;
public override void _Ready()
{
if (loop)
{
Finished += Play;
}
}
}