rokojori_action_library/Runtime/Animation/Driver/FloatDriverNodeTarget.cs

30 lines
600 B
C#
Raw Normal View History

2026-01-05 21:14:39 +00:00
using System.Collections;
using System.Collections.Generic;
using System.Text.RegularExpressions;
using System.Text;
using Godot;
namespace Rokojori
{
[Tool]
[GlobalClass]
public partial class FloatDriverNodeTarget:FloatDriverTarget
{
[Export]
public NodePath nodePath;
[Export]
public string targetMemberPath;
2026-01-10 18:35:50 +00:00
public override GodotObject GetGodotObject( IFloatDriver driver )
2026-01-05 21:14:39 +00:00
{
2026-01-10 18:35:50 +00:00
return ( driver as Node ).GetNode( nodePath );
2026-01-05 21:14:39 +00:00
}
2026-01-10 18:35:50 +00:00
public override string GetTargetMemberPath( IFloatDriver driver )
2026-01-05 21:14:39 +00:00
{
return targetMemberPath;
}
}
}