2025-06-10 13:16:36 +00:00
|
|
|
|
|
|
|
using System.Diagnostics;
|
|
|
|
using System.Collections;
|
|
|
|
using System.Collections.Generic;
|
|
|
|
using System;
|
|
|
|
using Godot;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Rokojori
|
|
|
|
{
|
|
|
|
[Tool]
|
|
|
|
[GlobalClass, Icon("res://addons/rokojori_action_library/Icons/RemoveVirtualCamera3D.svg") ]
|
|
|
|
public partial class RemoveCameraSlot:Action
|
|
|
|
{
|
|
|
|
[Export]
|
2025-08-31 06:05:39 +00:00
|
|
|
public VirtualCamera virtualCamera3D;
|
2025-06-10 13:16:36 +00:00
|
|
|
|
|
|
|
protected override void _OnTrigger()
|
|
|
|
{
|
2025-08-31 06:05:39 +00:00
|
|
|
var vm = CameraManager.Get();
|
2025-06-10 13:16:36 +00:00
|
|
|
vm.RemoveSlot( vm.GetSlot( virtualCamera3D ) );
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|