Choose your operating system:
Windows
macOS
Linux
Module |
|
Header |
/Engine/Source/Runtime/Engine/Classes/Animation/BlendSpace.h |
Include |
#include "Animation/BlendSpace.h" |
class UBlendSpace :
public UAnimationAsset,
public IInterpolationIndexProvider
Allows multiple animations to be blended between based on input parameters
Name | Description | ||
---|---|---|---|
|
TObjectPtr< UAn... |
AnalysisProperties |
Analysis properties for each axis. |
|
float |
AnimLength |
This is the maximum length of any sample in the blendspace. |
|
TEnumAsByte< EB... |
AxisToScaleAnimation |
If you have input smoothing, this specifies the axis on which to scale the animation playback speed. |
|
bInterpolateUsingGrid |
If true then interpolation is done via a grid at runtime. |
|
|
BlendParameters |
Blend Parameters for each axis. |
|
|
BlendSpaceData |
Container for the runtime data, which could be line segments, triangulation or tetrahedrons |
|
|
bRotationBlendInMeshSpace |
When you use per bone sample smoothing, this makes blending happen in mesh space and can happen if this contains additive animation samples. |
|
|
bTargetWeightInterpolationEaseInOut |
If set then this eases in/out the sample weight adjustments, using the speed to determine how much smoothing to apply. |
|
|
TObjectPtr< UCa... |
CachedAnalysisProperties |
Cached properties used to initialize properties when newly created. |
|
DimensionIndices |
The order in which to use the dimensions in the data - e.g. [1, 2] means a 2D blend using Y and Z |
|
|
TArray< struct ... |
GridSamples |
Grid samples, indexing scheme imposed by subclass |
|
InterpolationParam |
Input Smoothing parameters for each input axis |
|
|
TEnumAsByte< EN... |
NotifyTriggerMode |
The current mode used by the BlendSpace to decide which animation notifies to fire. |
|
PerBoneBlend |
Per bone sample smoothing settings, which affect the specified bone and all its descendants in the skeleton. |
|
|
PreferredTriangulationDirection |
Preferred edge direction when the triangulation has to make an arbitrary choice |
|
|
TObjectPtr< UAn... |
PreviewBasePose |
Preview Base pose for additive BlendSpace |
|
FVector[3] |
PreviousAxisMinMaxValues |
|
|
float[3] |
PreviousGridSpacings |
|
|
TArray< struct ... |
SampleData |
Sample animation data |
|
SampleIndexWithMarkers |
Track index to get marker data from. |
|
|
float |
TargetWeightInterpolationSpeedPerSec |
If greater than zero, this is the speed at which the sample weights are allowed to change. |
Name | Description | |
---|---|---|
|
UBlendSpace ( |
Name | Description | ||
---|---|---|---|
|
AddSample ( |
Add samples |
|
|
AddSample ( |
Add samples |
|
|
ContainsMatchingSamples ( |
Returns whether or not all animation set on the blend space samples match the given additive type |
|
|
ContainsNonAdditiveSamples() |
||
|
ConvertBlendInputToGridSpace ( |
Translates BlendInput to grid space |
|
|
DeleteSample ( |
Delete samples |
|
|
DoesAnimationMatchExistingSamples ( |
Check if the blend spaces contains samples whos additive type match that of the animation sequence |
|
|
EditSampleValue |
Edit samples |
|
|
ExpandRangeForSample ( |
||
|
FilterInput ( |
Interpolate BlendInput based on Filter data |
|
|
float |
GetAnimationLengthFromSampleData ( |
Utility function to calculate animation length from sample data list |
|
GetAnimationPose ( |
||
|
GetAnimationPose ( |
||
|
EBlendSpaceA... |
GetAxisToScale() |
Returns the axis which can be used to scale animation speed. |
|
const FBlend... |
GetBlendParameter ( |
Accessor for blend parameter |
|
const FBlend... |
GetBlendSample ( |
Returns the Blend Sample at the given index, will assert on invalid indices |
|
const TArray... |
GetBlendSamples() |
Get this blend spaces sample data |
|
const FBlend... |
GetBlendSpaceData() |
Returns the runtime triangulation etc data |
|
GetClampedAndWrappedBlendInput ( |
Returns the blend input after clamping and/or wrapping |
|
|
GetClampedBlendInput ( |
Returns the blend input clamped to the valid range, unless that axis has been set to wrap in which case no clamping is done |
|
|
GetGridPosition ( |
Returns the sample position associated with the elements returned by GetGridSamples |
|
|
GetGridPosition |
Returns the sample position associated with the coordinates |
|
|
const FEdito... |
GetGridSampleInternal ( |
Returns the grid element at Index or NULL if Index is not valid |
|
const TArray... |
GetGridSamples() |
Return GridSamples from this BlendSpace |
|
GetNormalizedBlendInput ( |
Translates BlendInput to grid space |
|
|
GetNumberOfBlendSamples() |
Get the number of sample points for this blend space |
|
|
GetRawSamplesFromBlendInput ( |
Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points. |
|
|
GetSamplesFromBlendInput ( |
Get Grid Samples from BlendInput It will return all samples that has weight > KINDA_SMALL_NUMBER |
|
|
InitializeFilter ( |
Initialize BlendSpace filtering for runtime. |
|
|
InitializePerBoneBlend() |
Initialize Per Bone Blend |
|
|
InterpolateWeightOfSampleData ( |
Utility function to interpolate weight of samples from OldSampleDataList to NewSampleDataList and copy back the interpolated result to FinalSampleDataList |
|
|
IsAnimationCompatible ( |
Check if the animation sequence additive type is compatible with this blend space |
|
|
IsAnimationCompatibleWithSkeleton ( |
Check if the animation sequence's skeleton is compatible with this blendspace |
|
|
IsSameSamplePoint |
Checks if the given samples points overlap |
|
|
IsSampleWithinBounds ( |
||
|
IsTooCloseToExistingSamplePoint |
Check if given sample value isn't too close to existing sample point |
|
|
IsValidAdditiveType ( |
Returns whether or not the given additive animation type is compatible with the blendspace type |
|
|
IsValidBlendSampleIndex ( |
Check whether or not the sample index is valid in combination with the stored sample data |
|
|
ReplaceSampleAnimation ( |
Update animation on grid sample |
|
|
ResampleData() |
Runs triangulation/segmentation to update our grid and BlendSpaceData structures |
|
|
ResetToRefPose ( |
Reset to reference pose. It does apply different refpose based on additive or not |
|
|
RuntimeValidateMarkerData() |
||
|
SetBlendSpaceData ( |
Sets up BlendSpaceData based on Line elements |
|
|
ShouldAnimationBeAdditive() |
Check if the the blendspace contains additive samples only |
|
|
SnapSamplesToClosestGridPoint() |
If around border, snap to the border to avoid empty hole of data that is not valid |
|
|
TickFollowerSamples ( |
||
|
UpdateBlendSamples ( |
Updates a cached set of blend samples according to internal parameters, blendspace position and a delta time. |
|
|
UpdateBlendSpacesUsingAnimSequence ( |
Validates sample data for blendspaces using the given animation sequence |
|
|
UpdateFilterParams ( |
Update BlendSpace filtering parameters - values that don't require a full initialization |
|
|
UpdatePreviewBasePose() |
||
|
ValidateAnimationSequence ( |
Validate that the given animation sequence and contained blendspace data |
|
|
ValidateSampleData() |
Validates the contained data |
|
|
ValidateSampleValue |
Validates supplied blend sample against current contents of blendspace |
Name | Description | ||
---|---|---|---|
|
GetAllAnimationSequencesReferred ( |
Retrieve all animations that are used by this asset |
|
|
GetMarkerUpdateCounter() |
||
|
float |
GetPlayLength() |
This is used in editor only when used for transition getter this doesn't mean max time. |
|
GetUniqueMarkerNames() |
Return a list of unique marker names for blending compatibility |
|
|
IsValidAdditive() |
Return true if this is valid additive animation false otherwise |
|
|
ReplaceReferredAnimations ( |
Replace this assets references to other animations based on ReplacementMap |
|
|
TickAssetPlayer ( |
Advances the asset player instance |
Name | Description | ||
---|---|---|---|
|
PostEditChangeProperty ( |
Called when a property on this object has been modified externally |
|
|
PostLoad() |
Do any object-specific cleanup required immediately after loading an object. |
|
|
PreEditChange ( |
This is called when a property is about to be modified externally |
|
|
Serialize ( |
Handles reading, writing, and reference collecting using FArchive. |
Name | Description | ||
---|---|---|---|
|
TSharedPtr< ... |
GetPerBoneInterpolationData ( |
Sorts the PerBoneBlend data into a form that can be repeatedly used in GetPerBoneInterpolationIndex |
|
GetPerBoneInterpolationIndex ( |
Get PerBoneInterpolationIndex for the input BoneIndex If nothing found, return INDEX_NONE |
Name | Description | ||
---|---|---|---|
|
GetAnimationPose ( |
Use GetAnimationPose with other signature |
|
|
GetAnimationPose ( |
Use GetAnimationPose with extraction context signature |
|
|
GetAnimationPose ( |
Use GetAnimationPose with extraction context signature |
|
|
UpdateSampleAnimation ( |
Please use ReplaceSampleAnimation instead |