I want an equivalent of
foreach( element in Collection.Where(e=>e.Property==value))
{
}
for blueprints to find all actors with Simulate Physics property is enabled. But I didn’t find appropriate way for this.
I want an equivalent of
foreach( element in Collection.Where(e=>e.Property==value))
{
}
for blueprints to find all actors with Simulate Physics property is enabled. But I didn’t find appropriate way for this.
Create function with local array of your class, in this function create functionality:
Get all actors of class - for each loop - get is simulate physics enabled - branch (true) - add to your local array
When for each loop finished, your local array would have only members with physics enabled.