Code:
UWorld* world = GetWorld(); if (world) { APlayerController* pc = world->GetFirstPlayerController(); FVector2D mousePos = FVector2D(0,0); FVector& worldpos = FVector(mousePos.X,mousePos.Y,0); FVector& dir = FVector(0, 0, 0); pc->GetMousePosition(mousePos.X,mousePos.Y); pc->DeprojectMousePositionToWorld(worldpos, dir); //I get an error here }
what does this mean ? and how can i fix this ?
Comment