I´m following this tutorial:
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.