Thanks @3dRaven that solved the problem.
Also, I had set Allow CPUAccess in the static mesh details panel but I prefer to set it programmatically so thanks also for the tip about bAllowCPUAccess.
Thanks @3dRaven that solved the problem.
Also, I had set Allow CPUAccess in the static mesh details panel but I prefer to set it programmatically so thanks also for the tip about bAllowCPUAccess.