rj-action-library/Runtime/VirtualCameras/CameraSlotSelectors/SetActiveCameraSlotByFlags.cs

25 lines
441 B
C#

using System.Diagnostics;
using System.Collections;
using System.Collections.Generic;
using System;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class SetActiveCameraSlotByFlags:CameraSlotSelector
{
[Export]
public SelectorFlag[] flags;
public override VirtualCamera3DSlot GetCameraSlot()
{
var slot = VirtualCamera3DManager.Get().GetSlot( flags );
return slot;
}
}
}