Detect Light Type from imported GLB

Hello Everyone,

Is there a way to detect if a light source from an imported file is a point, directional or spot light?

Here is an example of what I am trying to do:

I tried digging through the docs and properties that I console.logged out but can’t find anything.

You can use light.getClassName() to know what type of light it is, in this case a “PointLight”. :slight_smile:


Thanks! You are the master!