UEditorEngine::SpawnPlayFromHereStart

Spawns a PlayFromHere playerstart in the given world

Windows
MacOS
Linux

References

Module

UnrealEd

Header

/Engine/Source/Editor/UnrealEd/Classes/Editor/EditorEngine.h

Include

#include "Editor/EditorEngine.h"

Source

/Engine/Source/Editor/UnrealEd/Private/PlayLevel.cpp

Syntax

bool SpawnPlayFromHereStart
(
    UWorld * World,
    AActor *& PlayerStartPIE,
    const FVector & StartLocation,
    const FRotator & StartRotation
)

Remarks

Spawns a PlayFromHere playerstart in the given world

Returns

true if spawn succeeded, false if failed

Parameters

Parameter

Description

World

The World to spawn in (for PIE this may not be GWorld)

PlayerStartPIE

A reference to the resulting PlayerStartPIE actor

StartLocation

The location to spawn the player in.

StartRotation

The rotation to spawn the player at.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss