Setting Mobility to a component via code ?

Hello L&G

I would like to change via code the mobility of my light component (from default movable to stationary)
I know i can do it exposing the component to editor, but i don´t want to do that, i need it to be hiden by c++

I was looking on AActor AActor | Unreal Engine Documentation
but could not find any sort of member setMobility (or something else)

Any tips?
Thanks so much

USceneComponent::SetMobility

Thanks, but the docs are not very explanatory…

i would suspect the following use:



myLight->SetMobility(EComponentMobility::Stationary);