Method IsValidLightUnitForType
IsValidLightUnitForType(HDLightType, SpotLightShape, LightUnit)
Check if the given type is supported by this type and shape.
Declaration
public static bool IsValidLightUnitForType(HDLightType type, SpotLightShape spotLightShape, LightUnit unit)
Parameters
Type | Name | Description |
---|---|---|
HDLightType | type | The type of the light |
SpotLightShape | spotLightShape | the shape of the spot.You can put anything in case it is not a spot light. |
LightUnit | unit | The unit to check |
Returns
Type | Description |
---|---|
bool | True: this unit is supported |