rokojori_action_library/Runtime/VFX/VFXTools.cs

20 lines
474 B
C#

using Godot;
using System.Collections.Generic;
using System.Linq;
namespace Rokojori
{
public class VFXTools
{
public static List<GeometryInstance3D> GetGeometryInstance3Ds( Node[] targets, bool includeChildren )
{
if ( ! includeChildren )
{
var list = targets.ToList();
return list.FilterType<Node,GeometryInstance3D>();
}
return Nodes.GetAnyChildren<Node>( targets ).FilterType<Node,GeometryInstance3D>();
}
}
}