Navigation
API > API/Plugins > API/Plugins/RemoteControlCommon
References
| Module | RemoteControlCommon |
| Header | /Engine/Plugins/VirtualProduction/RemoteControl/Source/RemoteControlCommon/Public/RCPropertyUtilities.h |
| Include | #include "RCPropertyUtilities.h" |
Syntax
class FRCPropertyVariant
Remarks
Container that can hold either a PropertyHandle, or Property/Data pair. Similar to FFieldVariant
Constructors
| Type | Name | Description | |
|---|---|---|---|
FRCPropertyVariant
(
const TSharedPtr< IPropertyHandle >& InPropertyHandle |
Construct from an IPropertyHandle. | ||
FRCPropertyVariant
(
const FProperty* InProperty, |
Construct from a Property, PropertyData ptr, and the expected element count (needed for arrays, strings, etc.). | ||
FRCPropertyVariant
(
const FProperty* InProperty, |
Construct from a Property and backing data array. Preferred over a raw ptr. |
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| int32 | Gets individual element size (for arrays, etc.). | ||
| PropertyType * | GetProperty () |
Gets the typed property, returns nullptr if not cast. | |
| FProperty * | GetProperty () |
Gets the property. | |
| TArray< uint8 > * | Gets the property container (byte array), if available. | ||
| void * | GetPropertyData
(
const FProperty* InContainer, |
Gets the data pointer | |
| ValueType * | GetPropertyValue
(
const FProperty* InContainer, |
Returns the data as the ValueType. | |
| FString * | GetPropertyValue
(
const FProperty* InContainer, |
||
| FString * | GetPropertyValue
(
const FProperty* InContainer, |
||
| void | InferNum
(
const FRCPropertyVariant* InOtherProperty |
Calculate number of elements based on available info. | |
| void | Init
(
int32 InSize |
Initialize/allocate if necessary. | |
| bool | IsHandle () |
Is this backed by an IPropertyHandle? | |
| int32 | Num () |
Gets the number of elements, more than 1 if an array. | |
| int32 | Size () |
Gets the size of the underlying data. |
Operators
| Type | Name | Description | |
|---|---|---|---|
| bool | operator!=
(
const FRCPropertyVariant& InOther |
||
| bool | operator==
(
const FRCPropertyVariant& InOther |
Comparison is by property, not by property instance value. |