Navigation
API > API/Plugins > API/Plugins/GeometryCache
GeometryCacheComponent, encapsulates a GeometryCache asset instance and implements functionality for rendering/and playback of GeometryCaches
| Name | UGeometryCacheComponent |
| Type | class |
| Header File | /Engine/Plugins/Runtime/GeometryCache/Source/GeometryCache/Classes/GeometryCacheComponent.h |
| Include Path | #include "GeometryCacheComponent.h" |
Syntax
UCLASS (MinimalAPI, ClassGroup=(Rendering), HideCategories=(Object, LOD),
Meta=(BlueprintSpawnableComponent))
class UGeometryCacheComponent : public UMeshComponent
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UActorComponent → USceneComponent → UPrimitiveComponent → UMeshComponent → UGeometryCacheComponent
Implements Interfaces
- IAsyncPhysicsStateProcessor
- IInterface_AssetUserData
- IInterface_AsyncCompilation
- INavRelevantInterface
- IPhysicsComponent
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UGeometryCacheComponent
(
const FObjectInitializer& ObjectInitializer |
GeometryCacheComponent.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| GeometryCache | TObjectPtr< UGeometryCache > | Geometry Cache instance referenced by the component | GeometryCacheComponent.h |
|
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void BackwardEnd() |
GeometryCacheComponent.h | ||
void ForwardEnd() |
GeometryCacheComponent.h | ||
float GetAnimationTime () |
Get the current animation time for GeometryCache. | GeometryCacheComponent.h |
|
float GetDuration() |
Get the duration of the playback | GeometryCacheComponent.h |
|
float GetElapsedTime() |
Get the current elapsed time for GeometryCache. Doesn't include the influence of StartTimeOffset | GeometryCacheComponent.h |
|
int32 GetFrameAtTime
(
const float Time |
Helper to get the frame of the ABC asset at time provided | GeometryCacheComponent.h | |
UGeometryCache * GetGeometryCache() |
Getter for Geometry cache instance referred by the component Note: This getter is not exposed to blueprints as you can use the readonly Uproperty for that | GeometryCacheComponent.h | |
bool GetManualTick() |
GeometryCacheComponent.h | ||
float GetMotionVectorScale() |
Get the motion vector scale. | GeometryCacheComponent.h |
|
int32 GetNumberOfFrames() |
Get the number of frames | GeometryCacheComponent.h |
|
int32 GetNumberOfTracks() |
Get the number of tracks | GeometryCacheComponent.h |
|
bool GetOverrideWireframeColor() |
Check whether we are overriding the wireframe color or not. | GeometryCacheComponent.h |
|
float GetPlaybackDirection() |
Get the playback direction for GeometryCache. | GeometryCacheComponent.h |
|
float GetPlaybackSpeed() |
Get current playback speed for GeometryCache. | GeometryCacheComponent.h |
|
float GetStartTimeOffset() |
Get current start time offset for GeometryCache. | GeometryCacheComponent.h |
|
float GetTimeAtFrame
(
const int32 Frame |
Helper to get the time at this frame | GeometryCacheComponent.h | |
TArray< FString > GetTrackNames() |
GeometryCacheComponent.h | ||
FLinearColor GetWireframeOverrideColor() |
Get the wireframe override color, used when overriding the wireframe color is enabled. | GeometryCacheComponent.h |
|
bool IsExtrapolatingFrames() |
Get whether this GeometryCache is extrapolating frames. | GeometryCacheComponent.h |
|
bool IsLooping() |
Get whether this GeometryCache is looping or not. | GeometryCacheComponent.h |
|
bool IsPlaying() |
Get whether this GeometryCache is playing or not. | GeometryCacheComponent.h |
|
bool IsPlayingReversed() |
Get whether this GeometryCache is playing in reverse or not. | GeometryCacheComponent.h |
|
void OnObjectReimported
(
UGeometryCache* ImportedGeometryCache |
OnObjectReimported, Callback function to refresh section data and update scene proxy. | GeometryCacheComponent.h | |
void Pause() |
Pause playback of GeometryCache | GeometryCacheComponent.h |
|
void Play() |
Start playback of GeometryCache | GeometryCacheComponent.h |
|
void PlayFromStart() |
Start playback of GeometryCache from the start | GeometryCacheComponent.h |
|
void PlayReversed() |
Start playback of GeometryCache in reverse | GeometryCacheComponent.h |
|
void PlayReversedFromEnd() |
Start playback of GeometryCache from the end and play in reverse | GeometryCacheComponent.h |
|
void ResetAnimationTime() |
GeometryCacheComponent.h | ||
void SetCurrentTime
(
const float Time |
Helper to make the animation jump to this time | GeometryCacheComponent.h | |
void SetExtrapolateFrames
(
const bool bNewExtrapolating |
Set whether this GeometryCache is extrapolating frames. | GeometryCacheComponent.h |
|
bool SetGeometryCache
(
UGeometryCache* NewGeomCache |
Change the Geometry Cache used by this instance. | GeometryCacheComponent.h |
|
void SetLooping
(
const bool bNewLooping |
Set whether this GeometryCache is looping or not. | GeometryCacheComponent.h |
|
void SetManualTick
(
bool bInManualTick |
Functions to override the default TickComponent | GeometryCacheComponent.h | |
void SetMotionVectorScale
(
const float NewMotionVectorScale |
Set new motion vector scale. | GeometryCacheComponent.h |
|
void SetOverrideWireframeColor
(
bool bOverride |
Override wireframe color? | GeometryCacheComponent.h |
|
void SetPlaybackSpeed
(
const float NewPlaybackSpeed |
Set new playback speed for GeometryCache. | GeometryCacheComponent.h |
|
void SetStartTimeOffset
(
const float NewStartTimeOffset |
Set current start time offset for GeometryCache. | GeometryCacheComponent.h |
|
void SetWireframeOverrideColor
(
const FLinearColor Color |
Set the color, used when overriding the wireframe color is enabled. | GeometryCacheComponent.h |
|
void StepBackward() |
GeometryCacheComponent.h | ||
void StepForward() |
Animation Helpers for Transport Controls. | GeometryCacheComponent.h | |
void Stop() |
Stop playback of GeometryCache | GeometryCacheComponent.h |
|
void TickAtThisTime
(
const float Time, |
GeometryCacheComponent.h |
|
|
void ToggleLooping() |
GeometryCacheComponent.h | ||
void UpdateLocalBounds () |
Update LocalBounds member from the local box of each section | GeometryCacheComponent.h |
Overridden from UPrimitiveComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FPrimitiveSceneProxy * CreateSceneProxy() |
GeometryCacheComponent.h | ||
virtual UMaterialInterface * GetMaterial
(
int32 MaterialIndex |
GeometryCacheComponent.h | ||
virtual int32 GetMaterialIndex
(
FName MaterialSlotName |
GeometryCacheComponent.h | ||
| GeometryCacheComponent.h | |||
virtual int32 GetNumMaterials() |
GeometryCacheComponent.h | ||
virtual bool IsMaterialSlotNameValid
(
FName MaterialSlotName |
GeometryCacheComponent.h |
Overridden from USceneComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual FBoxSphereBounds CalcBounds
(
const FTransform& LocalToWorld |
GeometryCacheComponent.h |
Overridden from UActorComponent
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void OnRegister() |
GeometryCacheComponent.h | ||
virtual void OnUnregister() |
GeometryCacheComponent.h | ||
virtual void TickComponent
(
float DeltaTime, |
GeometryCacheComponent.h |
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
GeometryCacheComponent.h | ||
virtual void FinishDestroy() |
GeometryCacheComponent.h | ||
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
GeometryCacheComponent.h | ||
virtual void PostEditUndo() |
GeometryCacheComponent.h | ||
virtual void PostLoad() |
GeometryCacheComponent.h | ||
virtual void PreEditUndo() |
GeometryCacheComponent.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void ClearTrackData() |
ClearTrackData Clean up data that was required for playback of geometry cache tracks | GeometryCacheComponent.h | |
void CreateTrackSection
(
int32 TrackIndex |
CreateTrackSection, Create/replace a track section. | GeometryCacheComponent.h | |
void InvalidateTrackSampleIndices() |
Invalidate both the Matrix and Mesh sample indices | GeometryCacheComponent.h | |
void JumpAnimationToTime
(
float Time, |
Jumps animation to time specified. | GeometryCacheComponent.h | |
void ReleaseResources() |
ReleaseResources, clears and removes data stored/copied from GeometryCache instance | GeometryCacheComponent.h | |
void SetupTrackData() |
SetupTrackData Call CreateTrackSection for all tracks in the GeometryCache assigned to this object. | GeometryCacheComponent.h | |
void StepAnimationFrame
(
bool bInBackwards |
Helper method to tick animation by one frame in PlayDirection | GeometryCacheComponent.h | |
bool UpdateTrackSection
(
int32 TrackIndex, |
Updates the game thread state of a track section | GeometryCacheComponent.h |