UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
UniversalObjectLocatorUtils.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "CoreTypes.h"
7
8class AActor;
9class UWorld;
10
12{
13 // Spawns a new actor of the given actor class and name. Optionally you can provide a template actor.
14 // Takes care of any special setup that may be required for the locator case, for example for editor preview actors.
15 // Intended to be called from custom Locator code during a Load operation.
17
18 // Destroys an Actor that was created for a locator and is no longer needed.
19 // Intended to be called from custom Locator code during an Unload operation.
21
22} // namespace UE::UniversalObjectLocator
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition Actor.h:257
Definition NameTypes.h:617
Definition SubclassOf.h:30
Definition World.h:918
Definition AnimInstanceLocatorFragment.cpp:19
AActor * SpawnActorForLocator(UWorld *World, TSubclassOf< AActor > ActorClass, FName ActorName, AActor *TemplateActor)
Definition UniversalObjectLocatorUtils.cpp:11
void DestroyActorForLocator(AActor *Actor)
Definition UniversalObjectLocatorUtils.cpp:83