Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/LightWeightInstanceSubsystem.h |
| Include | #include "GameFramework/LightWeightInstanceSubsystem.h" |
Syntax
struct FLightWeightInstanceSubsystem
Constructors
| Type | Name | Description | |
|---|---|---|---|
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| bool | AddManager
(
ALightWeightInstanceManager* Manager |
Add a manager to the subsystem, thread safe. | |
| FActorInstanceHandle | CreateNewLightWeightInstance
(
UClass* ActorClass, |
Returns a handle to a new light weight instance that represents an object of type ActorClass. | |
| void | DeleteInstance
(
const FActorInstanceHandle& Handle |
Deletes the instance identified by Handle | |
| AActor * | FetchActor
(
const FActorInstanceHandle& Handle |
Returns the actor specified by Handle. This may require loading and creating the actor object. | |
| I * | FetchInterfaceObject
(
const FActorInstanceHandle& Handle |
Returns an object that implements the interface I for Handle. | |
| UClass * | FindBestInstanceManagerClass
(
const UClass* ActorClass |
Returns the class of the instance manager best suited to support instances of type ActorClass. | |
| ALightWeightInstanceManager * | FindLightWeightInstanceManager
(
UClass& ActorClass, |
Returns the instance manager that handles actors of type ActorClass in level Level. | |
| ALightWeightInstanceManager * | FindLightWeightInstanceManager
(
const FActorInstanceHandle& Handle |
Returns the instance manager that handles the given handle. | |
| ALightWeightInstanceManager * | FindOrAddLightWeightInstanceManager
(
UClass& ActorClass, |
Returns the instance manager that handles instances of type Class that live in Level. | |
| FLightWeightInstanceSubsystem & | Get () |
||
| AActor * | GetActor_NoCreate
(
const FActorInstanceHandle& Handle |
Returns the actor specified by Handle if it exists. Returns nullptr if it doesn't. | |
| UClass * | GetActorClass
(
const FActorInstanceHandle& Handle |
Returns the class of the actor specified by Handle. | |
| ULevel * | GetLevel
(
const FActorInstanceHandle& Handle |
||
| FVector | GetLocation
(
const FActorInstanceHandle& Handle |
||
| const ALightWeightInstanceManager * | GetManagerAt
(
int32 Index |
Returns the light weight instance manager at index Index. | |
| int32 | GetManagerIndex
(
const ALightWeightInstanceManager* Manager |
Returns the index associated with Manager. | |
| FString | GetName
(
const FActorInstanceHandle& Handle |
||
| bool | IsInLevel
(
const FActorInstanceHandle& Handle, |
Returns true if the object represented by Handle is in InLevel. | |
| bool | IsInterfaceSupported
(
const FActorInstanceHandle& Handle |
Returns true if the handle can return an object that implements the interface U. | |
| bool | RemoveManager
(
ALightWeightInstanceManager* Manager |
Remove a manager from the subsystem, thread safe. |
Constants
| Name | Description |
|---|---|
| GetFunctionCS | |
| LWISubsystem | Application singleton |
Deprecated Functions
| Type | Name | Description | |
|---|---|---|---|
| FInt32Vector3 | ConvertPositionToCoord
(
const FVector& InPosition |
Use LWI Managers version of ConvertPositionToCoord() | |
| ALightWeightInstanceManager * | FindLightWeightInstanceManager
(
UClass* ActorClass, |
Use the version that takes in a position. | |
| ALightWeightInstanceManager * | FindOrAddLightWeightInstanceManager
(
UClass* ActorClass, |
Use the version that takes in a position. |