Navigation
API > API/Plugins > API/Plugins/LiveLink
A Skeleton virtual subject is an assembly of different subjects supporting the animation or basic role
| Name | ULiveLinkAnimationVirtualSubject |
| Type | class |
| Header File | /Engine/Plugins/Animation/LiveLink/Source/LiveLink/Public/LiveLinkAnimationVirtualSubject.h |
| Include Path | #include "LiveLinkAnimationVirtualSubject.h" |
Syntax
UCLASS (MinimalAPI, Meta=(DisplayName="Animation Virtual Subject"))
class ULiveLinkAnimationVirtualSubject : public ULiveLinkVirtualSubject
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → ULiveLinkVirtualSubject → ULiveLinkAnimationVirtualSubject
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
ULiveLinkAnimationVirtualSubject() |
LiveLinkAnimationVirtualSubject.h |
Structs
| Name | Remarks |
|---|---|
| FChildBoneInfo | Information about a bone that needs to be attached to a parent subject. |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Attachments | TArray< FLiveLinkVirtualSubjectBoneAttachment > | List of bone attachments between subjects. | LiveLinkAnimationVirtualSubject.h |
|
| bAppendSubjectNameToBones | bool | Whether to append SubjectName to each bones part of the virtual hierarchy | LiveLinkAnimationVirtualSubject.h |
|
| LocationBehavior | EBoneTransformResolution | What should happen to the location of a bone when there's a conflict between the child and parent subject. | LiveLinkAnimationVirtualSubject.h |
|
| RotationBehavior | EBoneTransformResolution | What should happen to the rotation of a bone when there's a conflict between the child and parent subject. | LiveLinkAnimationVirtualSubject.h |
|
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BoneNameToIndex | TMap< TPair< FName, FName >, int32 > | Lookup table of Subject + bone name to index in the concatenated list of bone names. | LiveLinkAnimationVirtualSubject.h | |
| bSubjectsNeedSorting | bool | Whether the subjects need to be sorted because an attachment has been modified. | LiveLinkAnimationVirtualSubject.h | |
| ChildBonesInfo | TMap< int32, FChildBoneInfo > | Map of global child indices to their respective bone info structure. | LiveLinkAnimationVirtualSubject.h |
Functions
Public
Overridden from UObject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void PostEditChangeProperty
(
FPropertyChangedEvent& PropertyChangedEvent |
LiveLinkAnimationVirtualSubject.h |
Overridden from ILiveLinkSubject
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void Update() |
LiveLinkAnimationVirtualSubject.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool AreSubjectsValid
(
const TArray< FLiveLinkSubjectKey >& InActiveSubjects |
Validates current source subjects | LiveLinkAnimationVirtualSubject.h | |
virtual void BuildFrame
(
const TArray< FLiveLinkSubjectFrameData >& InSubjectSnapshots |
LiveLinkAnimationVirtualSubject.h | ||
virtual void BuildSkeleton
(
const TArray< FLiveLinkSubjectFrameData >& InSubjectSnapshots |
Builds a new ref skeleton based on the current subject state(can early out if ref skeleton is already up to date) | LiveLinkAnimationVirtualSubject.h | |
bool BuildSubjectSnapshot
(
TArray< FLiveLinkSubjectFrameData >& OutSnapshot |
LiveLinkAnimationVirtualSubject.h | ||
bool DoesSkeletonNeedRebuilding() |
Tests to see if current ref skeleton is up to data | LiveLinkAnimationVirtualSubject.h | |
virtual void PostSkeletonRebuild() |
Called after the update method. | LiveLinkAnimationVirtualSubject.h | |
void ProcessAttachmentsForFrameData
(
FLiveLinkAnimationFrameData* SnapshotFrameData |
Apply transform offsets generated by the attachments to the frame data. | LiveLinkAnimationVirtualSubject.h | |
void ProcessAttachmentsForStaticData
(
TArray< int32 >& InOutBoneParents |
Build the ChildBonesInfo list from the specified attachments. | LiveLinkAnimationVirtualSubject.h | |
void SortSubjects() |
Sort the subjects according to the dependencies introduced by the attachments. | LiveLinkAnimationVirtualSubject.h |