FString SAnimSegmentsPanel::GetAnimSegmentName(int32 AnimSegmentIndex) const { if (ValidIndex(AnimSegmentIndex)) { UAnimSequenceBase* AnimReference = AnimTrack->AnimSegments[AnimSegmentIndex].AnimReference; if(AnimReference) { return AnimReference->GetName(); } } return FString(); }
FString SAnimSegmentsPanel::GetAnimSegmentDetailedInfo(int32 AnimSegmentIndex) const { if (ValidIndex(AnimSegmentIndex)) { FAnimSegment& AnimSegment = AnimTrack->AnimSegments[AnimSegmentIndex]; UAnimSequenceBase * Anim = AnimSegment.AnimReference; if ( Anim != NULL ) { return FString::Printf(TEXT("%s %.2f"), *Anim->GetName(), AnimSegment.GetLength() ); } } return FString(); }