UGameplayStatics::GetPlayerController etc take non-const worldcontextobjects


Functions like UGameplayStatics::GetPlayerController take a UObject * for the WorldContextObject, This object is not changed by the function, and could be const, but it isn’t. This makes using these functions from a const function annoying, as you can’t pass in ‘this’ for the context object.

Is there a reason why these functions don’t take a const object? Could they be changed to do so?