Modify default light settings?

Is there a way to modify the default light settings, perhaps in the engine config files? I’d like to, for example, have all lights default to moveable.

In Maya I’d just make a shelf with the light set as desired. In UE since lights are part of a level and not a separate entity in the browser, I’m a bit at a loss as to how to do this, other than to modify the config files. If there is a better approach I’m all ears.

It looks like this can be modified in the /Engine/Source/Runtime/Engine/Classes/Engine/Light.h file which has the line:

    /** Function to change the mobility type of light
    void SetMobility(EComponentMobility::Type InMobility);

So would I set it like this?

    void SetMobility(EComponentMobility::Type::Movable InMobility);

The command SetMobility takes

  • the namespace EComponentMobility
  • enum called Type
  • InMobility is the variable name of the passed enum

if default values work in this case it would be:

in light.h

void SetMobility(EComponentMobility::Type InMobility = EComponentMobility::Type::Movable);

Though if you are only learning c++ then I would advise at least making a backup of the header before any changes.

wise advise, thanks!

Also the default value goes only into the header. The cpp definition does not include the default values in it’s definition.