engine
 
载入中...
搜索中...
未找到
Public 成员函数 | Protected 成员函数 | Protected 属性 | 所有成员列表
UBlendSpace类 参考

Contains a grid of data points with weights from sample points in the space 更多...

#include <BlendSpace.h>

+ 类 UBlendSpace 继承关系图:

Public 成员函数

virtual bool IsValidAdditiveType (EAdditiveAnimationType AdditiveType) const override
 Returns whether or not the given additive animation type is compatible with the blendspace type
 

Protected 成员函数

virtual EBlendSpaceAxis GetAxisToScale () const override
 Let derived blend space decided how to handle scaling
 
const FEditorElement * GetEditorElement (int32 XIndex, int32 YIndex) const
 Get the Editor Element from Index 更多...
 
void GetGridSamplesFromBlendInput (const FVector &BlendInput, FGridBlendSample &LeftBottom, FGridBlendSample &RightBottom, FGridBlendSample &LeftTop, FGridBlendSample &RightTop) const
 Get Grid Samples from BlendInput, From Input, it will return the 4 points of the grid that this input belongs to. 更多...
 
virtual void GetRawSamplesFromBlendInput (const FVector &BlendInput, TArray< FGridBlendSample, TInlineAllocator< 4 > > &OutBlendSamples) const override
 Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points. 更多...
 
virtual bool IsSameSamplePoint (const FVector &SamplePointA, const FVector &SamplePointB) const
 Checks if the given samples points overlap
 
- Protected 成员函数 继承自 UBlendSpaceBase
FVector ClampBlendInput (const FVector &BlendInput) const
 Clamp blend input to valid point
 
bool ContainsMatchingSamples (EAdditiveAnimationType AdditiveType) const
 Returns whether or not all animation set on the blend space samples match the given additive type
 
FVector FilterInput (FBlendFilter *Filter, const FVector &BlendInput, float DeltaTime) const
 Interpolate BlendInput based on Filter data
 
float GetAnimationLengthFromSampleData (const TArray< FBlendSampleData > &SampleDataList) const
 Utility function to calculate animation length from sample data list
 
virtual EBlendSpaceAxis GetAxisToScale () const
 Let derived blend space decided how to handle scaling
 
const FEditorElement * GetGridSampleInternal (int32 Index) const
 Returns the grid element at Index or NULL if Index is not valid
 
FVector GetNormalizedBlendInput (const FVector &BlendInput) const
 Translates BlendInput to grid space
 
virtual void GetRawSamplesFromBlendInput (const FVector &BlendInput, TArray< FGridBlendSample, TInlineAllocator< 4 > > &OutBlendSamples) const
 Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points. 更多...
 
void InitializePerBoneBlend ()
 Initialize Per Bone Blend
 
bool InterpolateWeightOfSampleData (float DeltaTime, const TArray< FBlendSampleData > &OldSampleDataList, const TArray< FBlendSampleData > &NewSampleDataList, TArray< FBlendSampleData > &FinalSampleDataList) const
 Utility function to interpolate weight of samples from OldSampleDataList to NewSampleDataList and copy back the interpolated result to FinalSampleDataList
 
virtual bool IsSameSamplePoint (const FVector &SamplePointA, const FVector &SamplePointB) const
 Checks if the given samples points overlap
 
void ResetToRefPose (FCompactPose &OutPose)
 Reset to reference pose. 更多...
 

Protected 属性

TEnumAsByte< EBlendSpaceAxis > AxisToScaleAnimation
 If you have input interpolation, which axis to drive animation speed (scale) - i.e. 更多...
 
- Protected 属性 继承自 UBlendSpaceBase
struct FBlendParameter BlendParameters [3]
 Blend Parameters for each axis.
 
TArray< struct FEditorElement > GridSamples
 Grid samples, indexing scheme imposed by subclass
 
TArray< FPerBoneInterpolation > PerBoneBlend
 Define target weight interpolation per bone. 更多...
 
TArray< struct FBlendSample > SampleData
 Sample animation data
 
int32 SampleIndexWithMarkers
 Track index to get marker data from. 更多...
 

额外继承的成员函数

- Public 属性 继承自 UBlendSpaceBase
float AnimLength
 This animation length changes based on current input (resulting in different blend time)
 
bool bRotationBlendInMeshSpace
 When you use blend per bone, allows rotation to blend in mesh space. 更多...
 
FInterpolationParameter InterpolationParam [3]
 Input interpolation parameter for all 3 axis, for each axis input, decide how you'd like to interpolate input to
 
TEnumAsByte< ENotifyTriggerMode::Type > NotifyTriggerMode
 The current mode used by the blendspace to decide which animation notifies to fire. 更多...
 
float TargetWeightInterpolationSpeedPerSec
 Target weight interpolation. 更多...
 

详细描述

Contains a grid of data points with weights from sample points in the space

成员函数说明

◆ GetEditorElement()

const FEditorElement * UBlendSpace::GetEditorElement ( int32  XIndex,
int32  YIndex 
) const
protected

Get the Editor Element from Index

参数
XIndexIndex of X
YIndexIndex of Y
返回
FEditorElement * return the grid data

◆ GetGridSamplesFromBlendInput()

void UBlendSpace::GetGridSamplesFromBlendInput ( const FVector &  BlendInput,
FGridBlendSample &  LeftBottom,
FGridBlendSample &  RightBottom,
FGridBlendSample &  LeftTop,
FGridBlendSample &  RightTop 
) const
protected

Get Grid Samples from BlendInput, From Input, it will return the 4 points of the grid that this input belongs to.

参数
BlendInputBlendInput X, Y, Z corresponds to BlendParameters[0], [1], [2]
返回
LeftTop, RightTop, LeftBottom, RightBottom 4 corner of the grid this BlendInput belongs to It's possible they return INDEX_NONE, but that case the weight also should be 0.f

◆ GetRawSamplesFromBlendInput()

virtual void UBlendSpace::GetRawSamplesFromBlendInput ( const FVector &  BlendInput,
TArray< FGridBlendSample, TInlineAllocator< 4 > > &  OutBlendSamples 
) const
overrideprotectedvirtual

Get Grid Samples from BlendInput, From Input, it will populate OutGridSamples with the closest grid points.

参数
BlendInputBlendInput X, Y, Z corresponds to BlendParameters[0], [1], [2]
OutBlendSamplesPopulated with the samples nearest the BlendInput

重载 UBlendSpaceBase .

类成员变量说明

◆ AxisToScaleAnimation

TEnumAsByte<EBlendSpaceAxis> UBlendSpace::AxisToScaleAnimation
protected

If you have input interpolation, which axis to drive animation speed (scale) - i.e.

for locomotion animation, speed axis will drive animation speed (thus scale)


该类的文档由以下文件生成: