Get a reference of a Mesh from Editor to C++ Code

Actually I found a way. I Simply made an AStaticMeshActor* property with EditAnywhere flag. Now it is visible in the Editor and I Drag and Dropped the static mesh into the property.