Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/GameFramework
Inheritance Hierarchy
- UObjectBase
- UObjectBaseUtility
- UObject
- AActor
- ALightWeightInstanceManager
- ALightWeightInstanceStaticMeshManager
- AMassLWIStaticMeshManager
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/GameFramework/LightWeightInstanceStaticMeshManager.h |
| Include | #include "GameFramework/LightWeightInstanceStaticMeshManager.h" |
Syntax
class ALightWeightInstanceStaticMeshManager :
public ALightWeightInstanceManager,
public ISMInstanceManager
Variables
| Type | Name | Description | |
|---|---|---|---|
| TArray< int32 > | DataIndicesToBeDeleted | Data indices that we are going to delete later in the frame, we impose a small delay to group deletions to avoid cases where we might try to delete the same index multiple times in a frame. | |
| TArray< int32 > | DataIndicesToRenderingIndices | ||
| TObjectPtr< class UHierarchicalInstancedStaticMeshComponent > | InstancedStaticMeshComponent | ||
| TArray< int32 > | RenderingIndicesToDataIndices | Keep track of the relationship between our data and the rendering data stored in the instanced static mesh component | |
| TSoftObjectPtr< UStaticMesh > | StaticMesh |
Constructors
| Type | Name | Description | |
|---|---|---|---|
ALightWeightInstanceStaticMeshManager
(
const FObjectInitializer& ObjectInitializer |
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddInstanceToRendering
(
int32 DataIndex |
||
| void | Clears the static mesh used for rendering instances. | ||
| void | DuplicateLWIInstances
(
TArrayView< const int32 > DataIndices, |
||
| void | GetLWIDataIndices
(
TArrayView< const FSMInstanceId > InstanceIds, |
||
| void | |||
| void | Called when we set the static mesh. | ||
| void | |||
| void | RemoveInstanceFromRendering
(
int32 DataIndex |
||
| void | Sets the parameters on the instanced static mesh component | ||
| void | SetStaticMeshFromActor
(
AActor* InActor |
Sets the static mesh to use based on the info contained in InActor. |
Overridden from ALightWeightInstanceManager
| Type | Name | Description | |
|---|---|---|---|
| void | AddNewInstanceAt
(
FLWIData* InitData, |
Adds a new instance at the specified index. | |
| int32 | ConvertCollisionIndexToLightWeightIndex
(
int32 InIndex |
Returns the index used internally by the light weight instance manager that is associated with the instance referred to by InIndex used by collision and rendering. | |
| int32 | ConvertHandleIndexToInternalIndex
(
int32 HandleIndex |
||
| int32 | ConvertInternalIndexToHandleIndex
(
int32 InInternalIndex |
Helper functions for converting between our internal storage indices and the indices used by external bookkeeping. | |
| int32 | ConvertLightWeightIndexToCollisionIndex
(
int32 InIndex |
Returns the index used by collision and rendering that is associated with the instance referred to by InIndex. | |
| void | |||
| void | PostActorSpawn
(
const FActorInstanceHandle& Handle |
Called after spawning a new actor from a light weight instance. | |
| void | RemoveInstance
(
int32 Index |
Removes the instance. | |
| void | SetRepresentedClass
(
UClass* ActorClass |
Sets the specific class that this manages. |
Overridden from UObject
| Type | Name | Description | |
|---|---|---|---|
| void | GetLifetimeReplicatedProps
(
TArray< FLifetimeProperty >& OutLifetimeProps |
Data and replication functions |
Overridden from ISMInstanceManager
| Type | Name | Description | |
|---|---|---|---|
| bool | CanEditSMInstance
(
const FSMInstanceId& InstanceId |
Can the given static mesh instance be edited? | |
| bool | CanMoveSMInstance
(
const FSMInstanceId& InstanceId, |
Can the given static mesh instance be moved in the world? | |
| bool | DeleteSMInstances
(
TArrayView< const FSMInstanceId > InstanceIds |
Attempt to delete the given static mesh instances. | |
| bool | DuplicateSMInstances
(
TArrayView< const FSMInstanceId > InstanceIds, |
Attempt to duplicate the given static mesh instances, retrieving the IDs of any new instances. | |
| FText | GetSMInstanceDisplayName
(
const FSMInstanceId& InstanceId |
Get the display name of the given static mesh instance. | |
| FText | GetSMInstanceTooltip
(
const FSMInstanceId& InstanceId |
Get the tooltip of the given static mesh instance. | |
| bool | GetSMInstanceTransform
(
const FSMInstanceId& InstanceId, |
Attempt to get the transform of the given static mesh instance. | |
| void | NotifySMInstanceMovementEnded
(
const FSMInstanceId& InstanceId |
Notify that the given static mesh instance is done being moved. | |
| void | NotifySMInstanceMovementOngoing
(
const FSMInstanceId& InstanceId |
Notify that the given static mesh instance is currently being moved. | |
| void | NotifySMInstanceMovementStarted
(
const FSMInstanceId& InstanceId |
Notify that the given static mesh instance is about to be moved. | |
| void | NotifySMInstanceSelectionChanged
(
const FSMInstanceId& InstanceId, |
Notify that the given static mesh instance selection state has changed. | |
| bool | SetSMInstanceTransform
(
const FSMInstanceId& InstanceId, |
Attempt to set the transform of the given static mesh instance. |