How to use FViewport::GetHitProxy in game mode

i want to use GetHitProxy in Game mode ,but got the same issue , the function always return nullptr .i search other topics ,but the resolution link can not open already ? anybody can help me ? Thks very much

anybody can help ???