Access to mesh data in object via C++

hi, I test the code list above. but when showed in editor, the actor turned completed black when i touch it. Could you give me some advices? thx