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

Used to describe an element that can be linked to a segment in a montage or sequence. 更多...

#include <AnimLinkableElement.h>

+ 类 FAnimLinkableElement 继承关系图:

Public 成员函数

ENGINE_API void ChangeLinkMethod (EAnimLinkMethod::Type NewLinkMethod)
 Changes the way this element is linked to its segment 更多...
 
ENGINE_API void ChangeSlotIndex (int32 NewSlotIndex)
 Change the montage slot that this element is linked to 更多...
 
ENGINE_API void Clear ()
 Clear the linking information from this element, leaves montage link intact
 
ENGINE_API bool ConditionalRelink ()
 Relinks this element if internal state requires relinking
 
ENGINE_API const UAnimMontage * GetLinkedMontage () const
 Gets the Montage this element is linked to, if any
 
ENGINE_API const UAnimSequenceBase * GetLinkedSequence ()
 Gets the sequence this element is linked to
 
ENGINE_API EAnimLinkMethod::Type GetLinkMethod () const
 Get the method used to link this element to its segment
 
ENGINE_API int32 GetSegmentIndex () const
 Get the index of the segment this element is currently linked to
 
ENGINE_API int32 GetSlotIndex () const
 Get the slot index this element is currently linked to
 
ENGINE_API float GetTime (EAnimLinkMethod::Type ReferenceFrame=EAnimLinkMethod::Absolute) const
 Gets the current time for this element 更多...
 
ENGINE_API void Link (UAnimSequenceBase *AnimObject, float AbsTime, int32 InSlotIndex=0)
 Link this element to an animation object (Sequence or Montage) 更多...
 
ENGINE_API void LinkMontage (UAnimMontage *Montage, float AbsMontageTime, int32 InSlotIndex=0)
 Link this element to a montage 更多...
 
ENGINE_API void LinkSequence (UAnimSequenceBase *Sequence, float AbsSequenceTime)
 Link this element to a Sequence, Just setting basic data as sequences don't need full linking 更多...
 
ENGINE_API void OnChanged (float NewMontageTime)
 Called when the properties of this element are changed
 
ENGINE_API void RefreshSegmentOnLoad ()
 Refreshes the current segment data (Begin time, length etc.) and validate the link time Intended to update the internal state when segment lengths/times could have changed
 
ENGINE_API void SetSegmentIndex (int32 NewSegmentIndex)
 Directly sets segment index 更多...
 
virtual ENGINE_API void SetTime (float NewTime, EAnimLinkMethod::Type ReferenceFrame=EAnimLinkMethod::Absolute)
 Sets the time of this element 更多...
 
ENGINE_API void Update ()
 Update the timing information for this element. 更多...
 

Protected 成员函数

FAnimSegment * GetSegmentAtCurrentTime ()
 Gets the segment in the current montage in the current slot that is at the time of this element
 

Protected 属性

TEnumAsByte< EAnimLinkMethod::Type > CachedLinkMethod
 Cached link method used to transform the time when LinkMethod changes, always relates to the currently stored time
 
UAnimMontage * LinkedMontage
 The montage that this element is currently linked to
 
UAnimSequenceBase * LinkedSequence
 The Animation Sequence that this montage element will link to, when the sequence changes in either length or rate; the element will correctly place itself in relation to the sequence
 
TEnumAsByte< EAnimLinkMethod::Type > LinkMethod
 The method we are using to calculate our times
 
float LinkValue
 The time of this montage. 更多...
 
float SegmentBeginTime
 The absolute time in the montage that our currently linked segment begins
 
int32 SegmentIndex
 The index of the segment we are linked to within the slot we are using
 
float SegmentLength
 The absolute length of our currently linked segment
 
int32 SlotIndex
 The slot index we are currently using within LinkedMontage
 

详细描述

Used to describe an element that can be linked to a segment in a montage or sequence.

Usage: Inherit from FAnimLinkableElement and make sure to call LinkMontage or LinkSequence both on creation and on loading the element. From there SetTime and GetTime should be used to control where this element is in the montage or sequence.

For more advanced usage, see this implementation used in FAnimNotifyEvent where we have a secondary link to handle a duration

参见
FAnimNotifyEvent

成员函数说明

◆ ChangeLinkMethod()

ENGINE_API void FAnimLinkableElement::ChangeLinkMethod ( EAnimLinkMethod::Type  NewLinkMethod)

Changes the way this element is linked to its segment

参数
NewLinkMethodThe new linking method to use

◆ ChangeSlotIndex()

ENGINE_API void FAnimLinkableElement::ChangeSlotIndex ( int32  NewSlotIndex)

Change the montage slot that this element is linked to

参数
NewSlotIndexThe new slot to link to

◆ GetTime()

ENGINE_API float FAnimLinkableElement::GetTime ( EAnimLinkMethod::Type  ReferenceFrame = EAnimLinkMethod::Absolute) const

Gets the current time for this element

参数
ReferenceFrameWhat kind of time to return

◆ Link()

ENGINE_API void FAnimLinkableElement::Link ( UAnimSequenceBase *  AnimObject,
float  AbsTime,
int32  InSlotIndex = 0 
)

Link this element to an animation object (Sequence or Montage)

参数
AnimObjectThe object to link to
AbsTimeThe absolute time to place this element
InSlotIndexSlot index for montages (ignored otherwise)

◆ LinkMontage()

ENGINE_API void FAnimLinkableElement::LinkMontage ( UAnimMontage *  Montage,
float  AbsMontageTime,
int32  InSlotIndex = 0 
)

Link this element to a montage

参数
MontageThe montage to link to
AbsMontageTimeThe time in the montage that this element should be placed at
InSlotIndexThe slot in the montage to detect segments in

◆ LinkSequence()

ENGINE_API void FAnimLinkableElement::LinkSequence ( UAnimSequenceBase *  Sequence,
float  AbsSequenceTime 
)

Link this element to a Sequence, Just setting basic data as sequences don't need full linking

参数
SequenceThe sequence to link to
AbsSequenceTimeThe time in the sequence that this element should be placed at

◆ SetSegmentIndex()

ENGINE_API void FAnimLinkableElement::SetSegmentIndex ( int32  NewSegmentIndex)
inline

Directly sets segment index

参数
NewSegmentIndexNew segment index

◆ SetTime()

virtual ENGINE_API void FAnimLinkableElement::SetTime ( float  NewTime,
EAnimLinkMethod::Type  ReferenceFrame = EAnimLinkMethod::Absolute 
)
virtual

Sets the time of this element

参数
NewTimeThe time to set this element to
ReferenceFrameThe kind of time being passed to this method

被 FAnimNotifyEvent 重载.

◆ Update()

ENGINE_API void FAnimLinkableElement::Update ( )

Update the timing information for this element.

Will not search for a new segment unless this element does not have one

类成员变量说明

◆ LinkValue

float FAnimLinkableElement::LinkValue
protected

The time of this montage.

This will differ depending upon the method we are using to link the time for this element


该结构体的文档由以下文件生成: