Question regarding to Official Player Inputs & Pawns tutorial..

Hello L&G
I´m following this tutorial:

https://docs.unrealengine.com/en-US/Programming/Tutorials/PlayerInput/1

The first stage “Customize a Pawn”.

Wrote all the code exactly as shown on page, but i got an error from VS:

<Can´t assign a type UStaticMeshComponent to an entity of type USceneComponent>

The “MyPawn.h” is declared as:



USceneComponent * OurVisibleComponent;


then, on “MyPawn.cpp” is defined on constructor like this:



OurVisibleComponent = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("OurVisibleComponent"));



Even if VS is telling me that there is an error, Unreal Editor compiles correctly… what happens with VS and Unreal Editor that are not agreed?

I have noticed in other moments, that VS shows me an error where shouldn´t …

Thanks in advance.

Its ok, may be this is some sort of bug, or at least that is what a has been read.
Knowing this, is no problema.