Missing StaticMesh option in BatteryCollector c++ class

I am trying to follow the Battery Collector tutorial, and on the 4th video (04 - Adding Variables & Functions) I am supposed to assign some Cube to a “static mesh” field in the blueprint editor for a Pickup class (which publicly inherits from AActor), but it’s missing in my editor.

My code looks exactly as in the tutorial. Is it an engine version issue? how can I fix this?

Thanks!

Did a stupid mistake and put the constructor code in the BeginPlay function.

Moved it and it was fixed