Accidently pressed G

I am super new and I pressed G accidentally and don’t know what to do. Can someone help me?

What do you mean? What is G?

from my experience G puts you in game mode when in the editor, if thats what you did then just press it again and it will take you out of game mode. game mode basically hides certain things from the viewport like billboards so it looks closer to how it would in game.

In your viewport you can click on the dropdown and find Game view mode and check or uncheck it. You will see it has the keyboard shortcut “G” labeled next to it.