UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
ActorInstanceManagerInterface.h
Go to the documentation of this file.
1// Copyright Epic Games, Inc. All Rights Reserved.
2
3#pragma once
4
5#include "UObject/Interface.h"
6#include "Chaos/Transform.h"
7#include "ActorInstanceManagerInterface.generated.h"
8
9
10class ULevel;
11class UClass;
12class AActor;
13class UPrimitiveComponent;
15
16UINTERFACE(MinimalAPI)
21
23{
25
26public:
27 // Returns the index used internally by the actor instance manager that is associated with the instance
28 // referred to by InIndex used by collision and rendering
29 virtual int32 ConvertCollisionIndexToInstanceIndex(int32 InIndex, const UPrimitiveComponent* RelevantComponent) const = 0;
30
31 // Returns the actor associated with Handle if one exists
33
34 // Returns the actor associated with Handle. If one does not exist the system is expected to spawn one instantly.
36
37 // Returns the specific class InstanceIndex represents
38 virtual UClass* GetRepresentedClass(int32 InstanceIndex) const = 0;
39
40 // Returns the ULevel given instance is represented in. Potentially null if InstanceIndex doesn't correspond to an actor
41 virtual ULevel* GetLevelForInstance(int32 InstanceIndex) const = 0;
42
43 // Returns the transform of the instance specified by Handle
45};
FPlatformTypes::int32 int32
A 32-bit signed integer.
Definition Platform.h:1125
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define GENERATED_BODY(...)
Definition ObjectMacros.h:765
#define UINTERFACE(...)
Definition ObjectMacros.h:780
Definition Actor.h:257
Definition ActorInstanceManagerInterface.h:23
virtual FTransform GetTransform(const FActorInstanceHandle &Handle) const =0
virtual int32 ConvertCollisionIndexToInstanceIndex(int32 InIndex, const UPrimitiveComponent *RelevantComponent) const =0
virtual AActor * FindOrCreateActor(const FActorInstanceHandle &Handle)=0
virtual AActor * FindActor(const FActorInstanceHandle &Handle)=0
virtual ULevel * GetLevelForInstance(int32 InstanceIndex) const =0
virtual UClass * GetRepresentedClass(int32 InstanceIndex) const =0
Definition ActorInstanceManagerInterface.h:18
Definition Class.h:3793
Definition Interface.h:19
Definition Level.h:423
Definition ActorInstanceHandle.h:33