FindCompentByClass doesn't show up in VSCode when typing "Actor ->"

UE Version :  4.22.3
VSCode Version : 1.36.1

So, I’m posting this because I was a little bit frustrated on this video.

I had the right answer, that I found on the UE documentation, but I thought it was wrong because VSCode didn’t show up all the methods I could use when typing Actor-> even though I had the right headers files included.

Typing TotalMass += Actor->FindComponentByClass<UPrimitiveComponent>()->GetMass(); didn’t get me any errors, but as a piece of an advice :

Always use and trust the UE documentation before anything else, it’ll guide you better, even if it slows you a bit.

Privacy & Terms