Navigation
API > API/Plugins > API/Plugins/Paper2D
A component that handles rendering and collision for many instances of one or more UPaperSprite assets.
| Name | UPaperGroupedSpriteComponent |
| Type | class |
| Header File | /Engine/Plugins/2D/Paper2D/Source/Paper2D/Classes/PaperGroupedSpriteComponent.h |
| Include Path | #include "PaperGroupedSpriteComponent.h" |
Syntax
UCLASS (MinimalAPI, ShowCategories=(Mobility), ClassGroup=Paper2D,
Meta=(BlueprintSpawnableComponent), EarlyAccessPreview)
class UPaperGroupedSpriteComponent : public UMeshComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UMeshComponent → UPaperGroupedSpriteComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UPaperGroupedSpriteComponent
(
const FObjectInitializer& ObjectInitializer |
PaperGroupedSpriteComponent.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 AddInstance
(
const FTransform& Transform, |
Add an instance to this component. | PaperGroupedSpriteComponent.h |
|
virtual int32 AddInstanceWithMaterial
(
const FTransform& Transform, |
PaperGroupedSpriteComponent.h | ||
virtual void ClearInstances() |
Clear all instances being rendered by this component | PaperGroupedSpriteComponent.h |
|
bool ContainsSprite
(
UPaperSprite* SpriteAsset |
Returns true if this component references the specified sprite asset. | PaperGroupedSpriteComponent.h | |
int32 GetInstanceCount() |
Get the number of instances in this component | PaperGroupedSpriteComponent.h |
|
bool GetInstanceTransform
(
int32 InstanceIndex, |
Get the transform for the instance specified. | PaperGroupedSpriteComponent.h |
|
void GetNavigationPerInstanceTransforms
(
const FBox& AreaBox, |
Handles request from navigation system to gather instance transforms in a specific area box | PaperGroupedSpriteComponent.h | |
const TArray< FSpriteInstanceData > & GetPerInstanceSpriteData() |
PaperGroupedSpriteComponent.h | ||
| Adds all referenced sprite assets to the specified list. | PaperGroupedSpriteComponent.h | ||
virtual bool RemoveInstance
(
int32 InstanceIndex |
Remove the instance specified. Returns True on success. | PaperGroupedSpriteComponent.h |
|
void SortInstancesAlongAxis
(
FVector WorldSpaceSortAxis |
Sort all instances by their world space position along the specified axis | PaperGroupedSpriteComponent.h |
|
virtual bool UpdateInstanceColor
(
int32 InstanceIndex, |
Update the color for the instance specified. Returns True on success. | PaperGroupedSpriteComponent.h |
|
virtual bool UpdateInstanceTransform
(
int32 InstanceIndex, |
Update the transform for the instance specified. | PaperGroupedSpriteComponent.h |
|
Overridden from UPrimitiveComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool CanEditSimulatePhysics() |
PaperGroupedSpriteComponent.h | ||
virtual FPrimitiveSceneProxy * CreateSceneProxy() |
PaperGroupedSpriteComponent.h | ||
virtual UMaterialInterface * GetMaterial
(
int32 MaterialIndex |
PaperGroupedSpriteComponent.h | ||
virtual int32 GetNumMaterials() |
PaperGroupedSpriteComponent.h | ||
virtual void GetUsedTextures
(
TArray< UTexture* >& OutTextures, |
PaperGroupedSpriteComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& BoundTransform |
PaperGroupedSpriteComponent.h | ||
virtual void OnUpdateTransform
(
EUpdateTransformFlags UpdateTransformFlags, |
PaperGroupedSpriteComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual const UObject * AdditionalStatObject() |
PaperGroupedSpriteComponent.h | ||
virtual void CheckForErrors() |
PaperGroupedSpriteComponent.h | ||
virtual bool ShouldCreatePhysicsState() |
PaperGroupedSpriteComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeChainProperty
(
FPropertyChangedChainEvent& PropertyChangedEvent |
PaperGroupedSpriteComponent.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
PaperGroupedSpriteComponent.h | ||
virtual void PostEditUndo() |
PaperGroupedSpriteComponent.h |
Overridden from INavRelevantInterface
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual bool DoCustomNavigableGeometryExport
(
FNavigableGeometryExport& GeomExport |
PaperGroupedSpriteComponent.h | ||
virtual void GetNavigationData
(
FNavigationRelevantData& Data |
PaperGroupedSpriteComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearAllInstanceBodies() |
Terminate all body instances owned by this component | PaperGroupedSpriteComponent.h | |
void CreateAllInstanceBodies() |
Creates body instances for all instances owned by this component | PaperGroupedSpriteComponent.h | |
FBodyInstance * InitInstanceBody
(
int32 InstanceIndex, |
Creates a body instance for the specified instance data if that sprite has defined collision | PaperGroupedSpriteComponent.h | |
void RebuildInstances() |
Invalidates the render and collision state | PaperGroupedSpriteComponent.h | |
void RebuildMaterialList() |
Creates the material list from the instances | PaperGroupedSpriteComponent.h | |
void ReleasePerInstanceRenderData() |
Transfers ownership of instance render data to a render thread instance render data will be released in scene proxy dtor or on render thread task | PaperGroupedSpriteComponent.h | |
void SetupNewInstanceData
(
FSpriteInstanceData& InOutNewInstanceData, |
Sets up new instance data to sensible defaults, creates physics counterparts if possible | PaperGroupedSpriteComponent.h | |
int32 UpdateMaterialList
(
UPaperSprite* Sprite, |
Adds to the material list from a single sprite | PaperGroupedSpriteComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnCreatePhysicsState() |
PaperGroupedSpriteComponent.h | ||
virtual void OnDestroyPhysicsState() |
PaperGroupedSpriteComponent.h |