readme
This commit is contained in:
15
BITKit/Scripts/Video/VideoPlayer.cs
Normal file
15
BITKit/Scripts/Video/VideoPlayer.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using Godot;
|
||||
using System;
|
||||
|
||||
namespace BITKit;
|
||||
public partial class VideoPlayer : VideoStreamPlayer
|
||||
{
|
||||
[Export] private bool loop;
|
||||
public override void _Ready()
|
||||
{
|
||||
if (loop)
|
||||
{
|
||||
Finished += Play;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user