I have tried this:
and this:
and this:
and lots of other stuff too.
The compiler says:
I have followed:
https://answers.unrealengine.com/que...awning-in.html
https://answers.unrealengine.com/que...ble-actor.html
https://answers.unrealengine.com/que...an-object.html
I am running:
Unreal Engine 4.6
Code:
static ABasePlayer* Instantiate(const UWorld* world) { UClass* player = ABasePlayer::StaticClass(); return world->SpawnActor<ABasePlayer>(player, FVector(0.0f, 0.f, 0.f), FRotator(0.0f, 0.f, 0.f), FActorSpawnParameters()); }
Code:
static ABasePlayer* Instantiate(const UWorld* world) { return world->SpawnActor<ABasePlayer>(ABasePlayer::StaticClass(), FVector(0.0f, 0.f, 0.f), FRotator(0.0f, 0.f, 0.f), FActorSpawnParameters()); }
Code:
static ABasePlayer* Instantiate(const UWorld* world) { return world->SpawnActor<ABasePlayer>(ABasePlayer::StaticClass()); }
The compiler says:
Code:
Error 1 error C2663: 'UWorld::SpawnActor' : 2 overloads have no legal conversion for 'this' pointer E:\Documents\Unreal Projects\TemplatePlatformer\Source\TemplatePlatformer\Public\BasePlayer.h 37 1 TemplatePlatformer Error 2 error C2663: 'UWorld::SpawnActor' : 2 overloads have no legal conversion for 'this' pointere:\documents\unreal projects\templateplatformer\source\templateplatformer\public\BasePlayer.h(37) : error C2663: 'UWorld::SpawnActor' : 2 overloads have no legal conversion for 'this' pointer e:\documents\unreal projects\templateplatformer\source\templateplatformer\public\BasePlayer.h 37 1 TemplatePlatformer
https://answers.unrealengine.com/que...awning-in.html
https://answers.unrealengine.com/que...ble-actor.html
https://answers.unrealengine.com/que...an-object.html
I am running:
Unreal Engine 4.6
Comment