Missing property on spotlight component

Hello [mention removed]​,

Thanks for the clarification. I can reproduce the issue locally.

Doing a bit of research into this issue, I found the MaxDrawDistance property is defined in ULightComponent as:

// In LightComponent.h UPROPERTY(EditAnywhere, Category = Performance) float MaxDrawDistance;However, it lacks the BlueprintReadWrite specifier and is declared in a private section by default. This means it’s not visible or editable at runtime in Blueprints. It’s also not accessible from derived classes in C++. This behavior remains unchanged since the first UE5 version.

Modifying the engine to add the BlueprintReadWrite specifier in the property would allow you to change its value after calling Add Spot Light Component. If you prefer not to modify the engine, then unfortunately you would need to avoid creating the spotlight component at runtime if you need to set this property.

Please let me know if this information helps.

Best,

Francisco