UEditorEngine::SpawnPlayFromHereStart

Spawns a PlayFromHere playerstart in the given world if there is a location set to spawn in.

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
)

Remarks

Spawns a PlayFromHere playerstart in the given world if there is a location set to spawn in.

Returns

true if spawn succeeded, false if failed. Returns true even if no object was spawned (due to location not being set).

Parameters

Parameter

Description

World

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

PlayerStartPIE

A reference to the resulting PlayerStartPIE actor

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