rokojori_action_library/Runtime/Actions/RemoveChildNodes.cs

28 lines
433 B
C#
Raw Normal View History

2025-07-25 08:13:35 +00:00
using Godot;
using System.Collections.Generic;
2026-05-22 12:25:02 +00:00
using Rokojori.Extensions;
2025-07-25 08:13:35 +00:00
namespace Rokojori
{
[Tool][GlobalClass]
public partial class RemoveChildNodes : Action
{
[Export]
public Node target;
[Export]
public bool queue = true;
protected override void _OnTrigger()
{
if ( target == null )
{
return;
}
target.DestroyChildren( true, queue );
}
}
}