Navigation
API > API/Plugins > API/Plugins/LiveLink
Inheritance Hierarchy
- ILiveLinkClient_Base_DEPRECATED
- ILiveLinkClient
- FLiveLinkClient_Base_DEPRECATED
- FLiveLinkClient
References
| Module | LiveLink |
| Header | /Engine/Plugins/Animation/LiveLink/Source/LiveLink/Public/LiveLinkClient.h |
| Include | #include "LiveLinkClient.h" |
Syntax
class FLiveLinkClient : public FLiveLinkClient_Base_DEPRECATED
Variables
| Type | Name | Description | |
|---|---|---|---|
| TUniquePtr< FLiveLinkSourceCollection > | Collection | The current collection used. | |
| FCriticalSection | PendingFramesCriticalSection | Lock to protect access on SubjectFrameToPush and SubjectStaticToPush. | |
| TSharedPtr< ILiveLinkProvider > | RebroadcastLiveLinkProvider | LiveLink Provider for rebroadcasting |
Constructors
| Type | Name | Description | |
|---|---|---|---|
| Default constructor that setups LiveLink to use the SamplingInput delegate to tick. | |||
FLiveLinkClient
(
FSimpleMulticastDelegate& InTickingDelegate |
|||
FLiveLinkClient
(
FTSSimpleMulticastDelegate& InTickingDelegate |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AddVirtualSubject
(
FLiveLinkSubjectName VirtualSubjectName, |
||
| void | AddVirtualSubject
(
FName NewVirtualSubjectName |
||
| void | BroadcastFrameDataUpdate
(
const FLiveLinkSubjectKey& InSubjectKey, |
Broadcast out to the SubjectFrameAddedHandles a frame data update. | |
| TArray< FGuid > | GetDisplayableSources
(
bool bIncludeVirtualSources |
Get all sources that can be displayed in the UI's source list. | |
| FText | GetEntryStatusForEntry
(
FGuid EntryGuid |
||
| FText | GetMachineNameForEntry
(
FGuid EntryGuid |
||
| TSharedPtr< ILiveLinkProvider > | Method that can be overriden in child classes to provide their own rebroadcast provider. | ||
| FName | GetRebroadcastName
(
const FLiveLinkSubjectKey& InSubjectKey |
Get the rebroadcast name for a given subject. | |
| const TArray< FGuid > & | Function that are now deprecated | ||
| FText | GetSourceTypeForEntry
(
FGuid EntryGuid |
||
| FLiveLinkSubjectTimeSyncData | GetTimeSyncData
(
FLiveLinkSubjectName SubjectName |
||
| void | OnPropertyChanged
(
FGuid EntryGuid, |
Callback when property changed for one of the source settings | |
| void | PushPendingSubject_AnyThread
(
FPendingSubjectStatic&& PendingSubject |
Push subject static data with additional metadata. | |
| bool | RegisterGlobalSubjectFramesDelegate
(
const FOnLiveLinkSubjectStaticDataAdded::FDelegate& InOnStaticDataAdded, |
Add delegates that will be triggered for all subjects. | |
| FDelegateHandle | RegisterSourcesChangedHandle
(
const FSimpleMulticastDelegate::FDelegate& SourcesChanged |
||
| void | ReinitializeVirtualSubject
(
const FLiveLinkSubjectKey& SubjectKey |
Call initialize again on an existing virtual subject. | |
| void | Remove all sources from the live link client | ||
| bool | RemoveAllSourcesWithTimeout
(
float InTimeout |
Remove all sources and wait for them to be removed. This is a blocking operation. | |
| void | Tick () |
The tick callback to update the pending work and clear the subject's snapshot | |
| void | UnregisterGlobalSubjectFramesDelegate
(
FDelegateHandle& InStaticDataAddedHandle, |
Remove the delegates that were triggered for all subjects. | |
| void | UnregisterSourcesChangedHandle
(
FDelegateHandle Handle |
Overridden from FLiveLinkClient_Base_DEPRECATED
| Type | Name | Description | |
|---|---|---|---|
| void | Function for Deprecation | ||
| void | ClearFrames_Deprecation
(
const FLiveLinkSubjectKey& SubjectKey |
||
| FLiveLinkSkeletonStaticData * | GetSubjectAnimationStaticData_Deprecation
(
const FLiveLinkSubjectKey& SubjectKey |
||
| void |
Overridden from ILiveLinkClient
| Type | Name | Description | |
|---|---|---|---|
| FGuid | AddSource
(
TSharedPtr< ILiveLinkSource > Source |
Add a new live link source to the client | |
| bool | AddVirtualSubject
(
const FLiveLinkSubjectKey& VirtualSubjectKey, |
Add a new virtual subject to the client | |
| FGuid | AddVirtualSubjectSource
(
FName SourceName |
Add a new live link VirtualSubject source to the client | |
| void | Clear all subjects frames | ||
| void | ClearOverrideStaticData_AnyThread
(
const FLiveLinkSubjectKey& InSubjectKey |
Claer the override static data used by the subject remapper. | |
| void | ClearSubjectsFrames_AnyThread
(
FLiveLinkSubjectName SubjectName |
Clear the stored frames associated with the enabled subject | |
| void | ClearSubjectsFrames_AnyThread
(
const FLiveLinkSubjectKey& InSubjectKey |
Clear the stored frames associated with the subject | |
| bool | CreateSource
(
const FLiveLinkSourcePreset& SourcePreset |
Create from the factory a new live link source and add it to the client. | |
| bool | CreateSubject
(
const FLiveLinkSubjectPreset& SubjectPreset |
Create and add a new live link subject to the client | |
| bool | DoesSubjectSupportsRole_AnyThread
(
FLiveLinkSubjectName SubjectName, |
Whether a subject support a particular role, either directly or through a translator | |
| bool | DoesSubjectSupportsRole_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey, |
Whether a subject support a particular role, either directly or through a translator | |
| bool | EvaluateFrame_AnyThread
(
FLiveLinkSubjectName SubjectName, |
Return the evaluated subject snapshot for a specific role. | |
| bool | EvaluateFrameAtSceneTime_AnyThread
(
FLiveLinkSubjectName SubjectName, |
||
| bool | EvaluateFrameAtSceneTime_AnyThread
(
FLiveLinkSubjectName SubjectName, |
Evaluates a subject for a specific role at a scene time. | |
| bool | EvaluateFrameAtWorldTime_AnyThread
(
FLiveLinkSubjectName SubjectName, |
Evaluates a subject for a specific role. | |
| bool | EvaluateFrameFromSource_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey, |
Return the evaluated subject from a specific source snapshot for a specific role. | |
| void | ForceTick () |
Performs an internal Tick(). | |
| FText | GetSourceMachineName
(
FGuid EntryGuid |
Get the machine name of the source. | |
| FText | GetSourceNameOverride
(
const FLiveLinkSubjectKey& SubjectKey |
Get the source name override for a given subject. | |
| FLiveLinkSourcePreset | GetSourcePreset
(
FGuid SourceGuid, |
Get the source preset from the live link client. | |
| TArray< FGuid > | GetSources
(
bool bEvenIfPendingKill |
Get a list of all the sources | |
| ULiveLinkSourceSettings * | GetSourceSettings
(
const FGuid& SourceGuid |
Get the Settings of this source. | |
| FText | GetSourceStatus
(
FGuid EntryGuid |
Get the status of a source | |
| FText | GetSourceType
(
FGuid EntryGuid |
Get the type of a source | |
| FText | GetSubjectDisplayName
(
const FLiveLinkSubjectKey& SubjectKey |
Get the display name for a subject. Returns an empty text if the source is invalid. | |
| TArray< FLiveLinkTime > | GetSubjectFrameTimes
(
const FLiveLinkSubjectKey& SubjectKey |
Get the time of all the frames for a specific subject, including computed offsets. | |
| TArray< FLiveLinkTime > | GetSubjectFrameTimes
(
FLiveLinkSubjectName SubjectName |
Get the time of all the frames for a specific subject, including computed offsets. | |
| FLiveLinkSubjectPreset | GetSubjectPreset
(
const FLiveLinkSubjectKey& SubjectKey, |
Get the subject preset from the live link client. | |
| TSubclassOf< ULiveLinkRole > | GetSubjectRole_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey |
Get the role of a subject from a specific source | |
| TSubclassOf< ULiveLinkRole > | GetSubjectRole_AnyThread
(
FLiveLinkSubjectName SubjectName |
Get the role of the subject with this name | |
| TArray< FLiveLinkSubjectKey > | GetSubjects
(
bool bIncludeDisabledSubject, |
Get a list of all subjects | |
| UObject * | GetSubjectSettings
(
const FLiveLinkSubjectKey& SubjectKey |
Get the Settings of this subject. | |
| TArray< FLiveLinkSubjectKey > | GetSubjectsSupportingRole
(
TSubclassOf< ULiveLinkRole > SupportedRole, |
Get a list of name of subjects supporting a certain role | |
| ELiveLinkSubjectState | GetSubjectState
(
FLiveLinkSubjectName InSubjectName |
Returns the state of the given subject name. | |
| const FLiveLinkStaticDataStruct * | GetSubjectStaticData_AnyThread
(
const FLiveLinkSubjectKey& InSubjectKey, |
Utility method to grab a subject's static data. | |
| TArray< FGuid > | GetVirtualSources
(
bool bEvenIfPendingKill |
Get a list of all the VirtualSubjects sources | |
| bool | Returns true if the client has pending subject frames to process during its next tick | ||
| bool | HasSourceBeenAdded
(
TSharedPtr< ILiveLinkSource > Source |
Is the source been added | |
| bool | IsSourceStillValid
(
FGuid EntryGuid |
Returns whether the Source is connected to its data provider and can still push valid data. | |
| bool | IsSubjectEnabled
(
const FLiveLinkSubjectKey& SubjectKey, |
Whether or not a subject from the specific source is the enabled subject. | |
| bool | IsSubjectEnabled
(
FLiveLinkSubjectName SubjectName |
Whether or not the client has a subject with this name enabled Only 1 subject with the same name can be enabled. | |
| bool | IsSubjectTimeSynchronized
(
const FLiveLinkSubjectKey& SubjectKey |
Whether or not the subject's data, from a specific source, is time synchronized or not | |
| bool | IsSubjectTimeSynchronized
(
FLiveLinkSubjectName SubjectName |
Whether or not the subject's data is time synchronized or not | |
| bool | IsSubjectValid
(
FLiveLinkSubjectName SubjectName |
Whether or not the client has a subject with this name that is valid and has valid snapshot data | |
| bool | IsSubjectValid
(
const FLiveLinkSubjectKey& SubjectKey |
Whether or not a subject from a specific source is valid and has valid snapshot data | |
| bool | IsVirtualSubject
(
const FLiveLinkSubjectKey& SubjectKey |
Whether the subject key points to a virtual subject | |
| FOnLiveLinkSourceChangedDelegate & | Notify when a new source has been added | ||
| FOnLiveLinkSourceChangedDelegate & | Notify when a source has been removed | ||
| FSimpleMulticastDelegate & | Notify when the list of sources has changed. | ||
| FOnLiveLinkSubjectChangedDelegate & | Notify when a new subject has been added | ||
| FOnLiveLinkSubjectEvaluated & | Notify the debug interface when a subject has been evaluated. | ||
| FOnLiveLinkSubjectChangedDelegate & | Notify when a subject has been removed | ||
| FSimpleMulticastDelegate & | Notify when the list of subject has changed. | ||
| FSimpleMulticastDelegate & | Notify when the LiveLinkClient has ticked. | ||
| void | PushSubjectFrameData_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey, |
Push frame data for a specific subject for a certain role | |
| void | PushSubjectStaticData_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey, |
Push static data for a specific subject for a certain role. This will clear all buffered frames | |
| void | RegisterForFrameDataReceived
(
const FLiveLinkSubjectKey& InSubjectKey, |
Register for when a frame data was received. | |
| bool | RegisterForSubjectFrames
(
FLiveLinkSubjectName SubjectName, |
Register for when a frame has been validated, added and ready to be used. | |
| void | RemoveSource
(
TSharedPtr< ILiveLinkSource > Source |
Remove the specified source from the live link client | |
| void | RemoveSource
(
FGuid InEntryGuid |
Remove the source specified by the source Id from the live link client | |
| void | RemoveSubject_AnyThread
(
const FLiveLinkSubjectKey& SubjectKey |
Clear the subject from the specific source | |
| void | RemoveVirtualSubject
(
const FLiveLinkSubjectKey& VirtualSubjectKey |
Removes a virtual subject from the client | |
| void | SetSubjectEnabled
(
const FLiveLinkSubjectKey& SubjectKey, |
Set the subject's from a specific source to enabled, disabling the other in the process. | |
| void | UnregisterForFrameDataReceived
(
const FLiveLinkSubjectKey& InSubjectKey, |
Unregister delegate registered with RegisterForFrameDataReceived. | |
| void | UnregisterSubjectFramesHandle
(
FLiveLinkSubjectName InSubjectName, |
Unregister delegates registered with RegisterForSubjectFrames. |
Classes
| Type | Name | Description | |
|---|---|---|---|
| FPendingSubjectFrame | Struct that hold the pending frame data that will be pushed next tick. | ||
| FPendingSubjectStatic | Struct that hold the pending static data that will be pushed next tick. |