Download

Number of lights with Get Components by class not correct

Greetings,

If you have, for example, a blueprint with one Spot light component and one Point light component, if you count them using the Get Components by class node, you will get that you have 1 Spot light (correct) but 2 Point lights (incorrect):


Kindest regards

I think it’s because the SpotLightComponent class inherits from the PointLightComponent class.

This is correct behaviour.
See:

Thank you.

Hmmm… so are there not a way to only select the point lights? or filter that “parent” class excluding childs? I supposed that, if the Get Components by Class node offers a list with Point Lights and Spot lights separately, they should be internally coded to be distinguishable.

(Instead of needing to reeplace this):


(With this):

Thanks!