Navigation
API > API/Editor > API/Editor/PropertyEditor
Inheritance Hierarchy
- TSharedFromThis< IPropertyHandle >
- IPropertyHandle
References
| Module | PropertyEditor |
| Header | /Engine/Source/Editor/PropertyEditor/Public/PropertyHandle.h |
| Include | #include "PropertyHandle.h" |
Syntax
class IPropertyHandle : public TSharedFromThis< IPropertyHandle >
Remarks
A handle to a property which is used to read and write the value without needing to handle Pre/PostEditChange, transactions, package modification A handle also is used to identify the property in detail customization interfaces
Destructors
| Type | Name | Description | |
|---|---|---|---|
Functions
| Type | Name | Description | |
|---|---|---|---|
| void | AccessRawData
(
TArray< const void* >& RawData |
||
| void | AccessRawData
(
TArray< void* >& RawData |
Accesses the raw data of this property. (Each pointer can be cast to the property data type) | |
| TArray< TSharedPtr< IPropertyHandle > > | AddChildStructure
(
TSharedRef< IStructureDataProvider > ChildStructure |
||
| TArray< TSharedPtr< IPropertyHandle > > | AddChildStructure
(
TSharedRef< FStructOnScope > ChildStructure |
Adds a child structure | |
| void | AddRestriction
(
TSharedRef< const FPropertyRestriction > Restriction |
Adds a restriction to the possible values for this property. | |
| TSharedPtr< IPropertyHandleArray > | AsArray () |
Returns this handle as an array if possible | |
| TSharedPtr< IPropertyHandleMap > | AsMap () |
||
| TSharedPtr< IPropertyHandleOptional > | AsOptional () |
||
| TSharedPtr< IPropertyHandleSet > | AsSet () |
||
| TSharedPtr< IPropertyHandleStruct > | AsStruct () |
||
| bool | Returns whether or not the property can be set to default | ||
| void | Marks this property as not having a custom reset to default (useful when a widget customizing reset to default goes away) | ||
| TSharedRef< SWidget > | Creates the default buttons which appear next to value widgets. | ||
| void | CreateDefaultPropertyCopyPasteActions
(
FUIAction& OutCopyAction, |
Creates the default copy and paste actions for a single property. | |
| TSharedPtr< FPropertyPath > | Helper to fetch a PropertyPath | ||
| TSharedRef< SWidget > | CreatePropertyNameWidget
(
const FText& NameOverride, |
Creates a name widget for this property | |
| TSharedRef< SWidget > | CreatePropertyNameWidget
(
const FText& NameOverride, |
Creates a name widget for this property | |
| TSharedRef< SWidget > | CreatePropertyValueWidget
(
bool bDisplayDefaultPropertyButtons |
Creates a value widget for this property | |
| TSharedRef< SWidget > | CreatePropertyValueWidgetWithCustomization
(
const IDetailsView* DetailsView |
Creates a value widget for this property using customization, if available. | |
| bool | |||
| void | EnumerateConstRawData
(
const EnumerateConstRawDataFuncRef& InRawDataCallback |
||
| void | EnumerateRawData
(
const EnumerateRawDataFuncRef& InRawDataCallback |
Return true to continue enumeration | |
| void | ExecuteCustomResetToDefault
(
const FResetToDefaultOverride& OnCustomResetToDefault |
Sets an override for this property's reset to default behavior | |
| FString | Generates a path from the parent UObject class to this property | ||
| bool | Generates a list of possible enum/class options for the property DisplayNames is optional | ||
| bool | GeneratePossibleValues
(
TArray< TSharedPtr< FString > >& OutOptionStrings, |
Generates a list of possible enum/class options for the property | |
| bool | GenerateRestrictionToolTip
(
const FString& Value, |
Generates a consistent tooltip describing this restriction for use in the editor. | |
| int32 | Helper to fetch the ArrayIndex | ||
| bool | GetBoolMetaData
(
const FName& Key |
Find the metadata value associated with the key and return bool | |
| TSharedPtr< IPropertyHandle > | GetChildHandle
(
FName ChildName, |
Gets a child handle of this handle. | |
| TSharedPtr< IPropertyHandle > | GetChildHandle
(
uint32 Index |
Gets a child handle of this handle. Useful for accessing properties in structs. | |
| UClass * | GetClassMetaData
(
const FName& Key |
Find the metadata value associated with the key and return UClass* | |
| FName | Gets the category FName that a property is in at the default location defined by the class the property is in It does not handle the property being moved to another category during customization | ||
| FText | Gets the category display name that a property is in at the default location defined by the class the property is in It does not handle the property being moved to another category during customization | ||
| FString | |||
| FString | |||
| double | GetDoubleMetaData
(
const FName& Key |
Find the metadata value associated with the key and return double | |
| float | GetFloatMetaData
(
const FName& Key |
Find the metadata value associated with the key and return float | |
| int32 | |||
| const FString * | GetInstanceMetaData
(
const FName& Key |
Get metadata value for 'Key' for this property instance (as opposed to the class) | |
| const TMap< FName, FString > * | Get metadata map for this property instance (as opposed to the class) | ||
| int32 | GetIntMetaData
(
const FName& Key |
Find the metadata value associated with the key and return int32 | |
| TSharedPtr< IPropertyHandle > | GetKeyHandle () |
||
| const FString & | GetMetaData
(
const FName& Key |
Find the metadata value associated with the key | |
| FProperty * | Gets the property we should use to read meta-data | ||
| FPropertyAccess::Result | GetNumChildren
(
uint32& OutNumChildren |
||
| uint32 | |||
| int32 | Gets the number of objects that this handle is editing | ||
| const UClass * | Get the shared base class of the objects that contain this property. | ||
| void | GetOuterObjects
(
TArray< UObject* >& OuterObjects |
Get the objects that contain this property | |
| void | GetOuterPackages
(
TArray< UPackage* >& OuterPackages |
Get the packages that contain this property | |
| void | GetOuterStructs
(
TArray< TSharedPtr< FStructOnScope > >& OutStructs |
Get the structures that contain this property | |
| TSharedPtr< IPropertyHandle > | |||
| FPropertyAccess::Result | GetPerObjectValue
(
const int32 ObjectIndex, |
Gets a value for the specified object that this handle is editing | |
| FPropertyAccess::Result | GetPerObjectValues
(
TArray< FString >& OutPerObjectValues |
Gets a unique value for each object this handle is editing | |
| FProperty * | GetProperty () |
Gets the property being edited | |
| const FFieldClass * | Gets the class of the property being edited | ||
| FText | |||
| FStringView | Helper to fetch a PropertyPath | ||
| FText | |||
| FText | Gets the property tool tip text. | ||
| FPropertyAccess::Result | GetValue
(
FVector2D& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FQuat& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FRotator& OutValue |
||
| FPropertyAccess::Result | GetValue
(
UObject*& OutValue |
||
| FPropertyAccess::Result | GetValue
(
const UObject*& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FAssetData& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FVector4& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FProperty*& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FText& OutValue |
||
| FPropertyAccess::Result | GetValue
(
double& OutValue |
||
| FPropertyAccess::Result | GetValue
(
bool& OutValue |
||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | GetValue
(
float& OutValue |
Gets the typed value of a property. | |
| FPropertyAccess::Result | GetValue
(
const FProperty*& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FVector& OutValue |
||
| FPropertyAccess::Result | GetValue
(
FName& OutValue |
||
| FPropertyAccess::Result | GetValueAsDisplayString
(
FString& OutValue, |
Gets the value formatted as a string, possibly using an alternate form more suitable for display in the UI | |
| FPropertyAccess::Result | GetValueAsDisplayText
(
FText& OutValue |
Gets the value formatted as a string, as Text, possibly using an alternate form more suitable for display in the UI | |
| FPropertyAccess::Result | GetValueAsFormattedString
(
FString& OutValue, |
Gets the value formatted as a string. | |
| FPropertyAccess::Result | GetValueAsFormattedText
(
FText& OutValue |
Gets the value formatted as a string, as Text. | |
| uint8 * | GetValueBaseAddress
(
uint8* Base |
Calculates the memory address for the data associated with this item's value. | |
| FPropertyAccess::Result | GetValueData
(
void*& OutAddress |
||
| bool | |||
| bool | HasMetaData
(
const FName& Key |
Determines if the property has any metadata associated with the key | |
| bool | |||
| bool | IsCustomized () |
||
| bool | IsDisabled
(
const FString& Value |
Tests if a value is disabled for this property | |
| bool | IsDisabled
(
const FString& Value, |
Tests if a value is disabled for this property. | |
| bool | IsEditable () |
||
| bool | IsEditConst () |
||
| bool | IsExpanded () |
||
| bool | IsFavorite () |
||
| bool | Tests if a value is hidden for this property | ||
| bool | Tests if a value is hidden for this property. | ||
| bool | |||
| bool | IsRestricted
(
const FString& Value |
Tests if a value is restricted for this property | |
| bool | IsRestricted
(
const FString& Value, |
Tests if a value is restricted for this property. | |
| bool | IsSamePropertyNode
(
TSharedPtr< IPropertyHandle > OtherHandle |
||
| bool | |||
| void | Marks this property has hidden by customizaton (will not show up in the default place) | ||
| void | MarkResetToDefaultCustomized
(
bool bCustomized |
Marks this property has having a custom reset to default (reset to default will not show up in the default place) | |
| void | Called to manually notify root objects that this property has finished changing This does not need to be called when SetValue functions are used since it will be called automatically | ||
| void | NotifyPostChange
(
EPropertyChangeType::Type ChangeType |
Called to manually notify root objects that this property has changed This does not need to be called when SetValue functions are used since it will be called automatically | |
| void | Called to manually notify root objects that this property is about to change This does not need to be called when SetValue functions are used since it will be called automatically | ||
| void | ReplaceOuterObjects
(
const TArray< UObject* >& OuterObjects |
Set the outer objects for this property | |
| void | Indicates that children of this node should be rebuilt next tick. | ||
| void | Resets the value to its default | ||
| void | SetExpanded
(
bool bExpanded |
Sets the expanded flag for this property. | |
| void | SetIgnoreValidation
(
bool bInIgnore |
Sets whether or not data validation should occur for this property and all of its children. | |
| void | SetInstanceMetaData
(
const FName& Key, |
Set metadata value for 'Key' to 'Value' on this property instance (as opposed to the class) | |
| FPropertyAccess::Result | Sets the object value from the current editor selection Will fail if this handle isn't an object property | ||
| void | SetOnChildPropertyValueChanged
(
const FSimpleDelegate& InOnChildPropertyValueChanged |
Sets a delegate to call when the value of the property of a child is changed | |
| void | SetOnChildPropertyValueChangedWithData
(
const TDelegate< void(const FPropertyChangedEvent&)>& InOnPropertyValueChanged |
Sets a delegate to call when the value of the property of a child is changed including the property changed event as parameter | |
| void | SetOnChildPropertyValuePreChange
(
const FSimpleDelegate& InOnChildPropertyValuePreChange |
Sets a delegate to call when the value of the property of a child is about to be changed | |
| void | SetOnPropertyResetToDefault
(
const FSimpleDelegate& InOnPropertyResetToDefault |
Sets a delegate to call when the property is reset to default | |
| void | SetOnPropertyValueChanged
(
const FSimpleDelegate& InOnPropertyValueChanged |
Sets a delegate to call when the value of the property is changed | |
| void | SetOnPropertyValueChangedWithData
(
const TDelegate< void(const FPropertyChangedEvent&)>& InOnPropertyValueChanged |
Sets a delegate to call when the value of the property is changed including the property changed event as parameter | |
| void | SetOnPropertyValuePreChange
(
const FSimpleDelegate& InOnPropertyValuePreChange |
Sets a delegate to call when the value of the property is about to be changed | |
| FPropertyAccess::Result | SetPerObjectValue
(
const int32 ObjectIndex, |
Sets a value on the specified object that this handle is editing | |
| FPropertyAccess::Result | SetPerObjectValues
(
const TArray< FString >& PerObjectValues, |
Sets a unique value for each object this handle is editing | |
| void | SetPropertyDisplayName
(
FText InDisplayName |
Allows the handle to override the node's display name | |
| void | SetToolTipText
(
const FText& ToolTip |
Sets the tooltip shown for this property | |
| FPropertyAccess::Result | SetValue
(
const TCHAR* InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FAssetData& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const UObject*const& InValue, |
||
| FPropertyAccess::Result | SetValue
(
UObject*const& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FRotator& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FQuat& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FVector4& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FVector2D& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FVector& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FName& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const FText& InValue, |
||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | SetValue
(
const bool& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const double& InValue, |
||
| FPropertyAccess::Result | SetValue
(
const float& InValue, |
Sets the typed value of a property. | |
| FPropertyAccess::Result | SetValue
(
FProperty*const& InValue, |
||
| FPropertyAccess::Result | |||
| FPropertyAccess::Result | SetValue
(
const FProperty*const& InValue, |
||
| FPropertyAccess::Result | SetValueFromFormattedString
(
const FString& InValue, |
Sets the value formatted as a string. |
Typedefs
| Name | Description |
|---|---|
| EnumerateConstRawDataFuncRef | Return true to continue enumeration |
| EnumerateRawDataFuncRef | Enumerate the raw data of this property. (Each pointer can be cast to the property data type) |