#include <OverriddenPropertySet.h>
|
| | FOverriddenPropertySet ()=default |
| |
| | FOverriddenPropertySet (TNotNull< UObject * > InOwner) |
| |
| UE_API EOverriddenPropertyOperation | GetOverriddenPropertyOperation (FPropertyVisitorPath::Iterator PropertyIterator, bool *bOutInheritedOperation=nullptr) const |
| |
| UE_API bool | ClearOverriddenProperty (FPropertyVisitorPath::Iterator PropertyIterator) |
| |
| UE_API void | OverrideProperty (FPropertyVisitorPath::Iterator PropertyIterator, const void *Data) |
| |
| UE_API void | NotifyPropertyChange (const EPropertyNotificationType Notification, FPropertyVisitorPath::Iterator PropertyIterator, const EPropertyChangeType::Type ChangeType, const void *Data) |
| |
| UE_API EOverriddenPropertyOperation | GetOverriddenPropertyOperation (const FArchiveSerializedPropertyChain *CurrentPropertyChain, FProperty *Property) const |
| |
| UE_API FOverriddenPropertyNode * | RestoreOverriddenPropertyOperation (EOverriddenPropertyOperation Operation, const FArchiveSerializedPropertyChain *CurrentPropertyChain, FProperty *Property) |
| |
| UE_API FOverriddenPropertyNode * | ConditionallyRestoreOverriddenPropertyOperation (EOverriddenPropertyOperation Operation, const FArchiveSerializedPropertyChain *CurrentPropertyChain, FProperty *Property) |
| |
| UE_API const FOverriddenPropertyNode * | GetOverriddenPropertyNode (const FArchiveSerializedPropertyChain *CurrentPropertyChain) const |
| |
| UE_API const FOverriddenPropertyNode * | GetOverriddenPropertyNode (const FOverriddenPropertyNodeID &NodeID) const |
| |
| UE_API EOverriddenPropertyOperation | GetSubPropertyOperation (const FOverriddenPropertyNodeID &NodeID) const |
| |
| UE_API FOverriddenPropertyNode * | RestoreSubPropertyOperation (EOverriddenPropertyOperation Operation, FOverriddenPropertyNode &Node, const FOverriddenPropertyNodeID &NodeID) |
| |
| UE_API FOverriddenPropertyNode * | RestoreSubObjectOperation (EOverriddenPropertyOperation Operation, FOverriddenPropertyNode &Node, TNotNull< UObject * > SubObject) |
| |
| UE_API bool | IsCDOOwningProperty (const FProperty &Property) const |
| |
| UE_API void | Reset (bool bShouldDirtyObject=true) |
| |
| UE_API void | HandleObjectsReInstantiated (const TMap< UObject *, UObject * > &Map) |
| |
| UE_API void | HandleDeadObjectReferences (const TSet< UObject * > &ActiveInstances, const TSet< UObject * > &TemplateInstances) |
| |
| bool | WasAdded () const |
| |
| TObjectPtr< UObject > | GetOwner () const |
| |
| UE_API void | RestoreOverriddenState (const FOverriddenPropertySet &FromOverriddenProperties) |
| |
|
| UE_API EOverriddenPropertyOperation | GetOverriddenPropertyOperation (const FOverriddenPropertyNode *ParentPropertyNode, FPropertyVisitorPath::Iterator PropertyIterator, bool *bOutInheritedOperation, const void *Data) const |
| |
| UE_API bool | ClearOverriddenProperty (FOverriddenPropertyNode &ParentPropertyNode, FPropertyVisitorPath::Iterator PropertyIterator, const void *Data) |
| |
| UE_API void | NotifyPropertyChange (FOverriddenPropertyNode *ParentPropertyNode, const EPropertyNotificationType Notification, FPropertyVisitorPath::Iterator PropertyIterator, const EPropertyChangeType::Type ChangeType, const void *Data, bool &bNeedsCleanup) |
| |
| UE_API void | NotifyAllPropertyChange (FOverriddenPropertyNode *ParentPropertyNode, const EPropertyNotificationType Notification, const EPropertyChangeType::Type ChangeType, TNotNull< const UStruct * > Struct, const void *Data) |
| |
| UE_API EOverriddenPropertyOperation | GetOverriddenPropertyOperation (const FOverriddenPropertyNode *ParentPropertyNode, const FArchiveSerializedPropertyChain *CurrentPropertyChain, FProperty *Property) const |
| |
| UE_API FOverriddenPropertyNode * | RestoreOverriddenPropertyOperation (EOverriddenPropertyOperation Operation, FOverriddenPropertyNode &ParentPropertyNode, const FArchiveSerializedPropertyChain *CurrentPropertyChain, FProperty *Property) |
| |
| UE_API const FOverriddenPropertyNode * | GetOverriddenPropertyNode (const FOverriddenPropertyNode &ParentPropertyNode, const FArchiveSerializedPropertyChain *CurrentPropertyChain) const |
| |
| UE_API UObject * | TryGetInstancedSubObjectValue (const FObjectPropertyBase *FromProperty, const void *ValuePtr) const |
| |
◆ FOverriddenPropertySet() [1/2]
| FOverriddenPropertySet::FOverriddenPropertySet |
( |
| ) |
|
|
default |
◆ FOverriddenPropertySet() [2/2]
| FOverriddenPropertySet::FOverriddenPropertySet |
( |
TNotNull< UObject * > |
InOwner | ) |
|
|
inline |
◆ ClearOverriddenProperty() [1/2]
◆ ClearOverriddenProperty() [2/2]
Clear any properties from the serialized property chain node
- Parameters
-
| PropertyIterator | leading to the property to clear, invalid iterator will clear the overrides on the object itself |
- Returns
- if the operation was successful
◆ ConditionallyRestoreOverriddenPropertyOperation()
Conditionally restores the overridable operation of the current property from the serialized property chain and the specified property
- Note
- : This will not restore modified state, has restoring sub properties will do it anyway.
- Parameters
-
| Operation | to set for this property |
| CurrentPropertyChain | leading to the property being serialized if any, null or empty it will return the node of the object itself |
| Property | being serialized if any, if null it will fallback on the last property of the chain |
- Returns
- the node containing the information of the overridden property
◆ GetOverriddenPropertyNode() [1/3]
Retrieve the overridden property node from the serialized property chain
- Parameters
-
| CurrentPropertyChain | leading to the property being serialized if any, null or empty it will return the node of the object itself |
- Returns
- the node containing the information of the overridden property
◆ GetOverriddenPropertyNode() [2/3]
◆ GetOverriddenPropertyNode() [3/3]
◆ GetOverriddenPropertyOperation() [1/4]
Retrieve the overridable operation from the specified the serialized property chain and the specified property
- Parameters
-
| CurrentPropertyChain | leading to the property being serialized if any, null or empty it will return the node of the object itself |
| Property | being serialized if any, if null it will fallback on the last property of the chain |
- Returns
- the current type of override operation on the property
◆ GetOverriddenPropertyOperation() [2/4]
◆ GetOverriddenPropertyOperation() [3/4]
◆ GetOverriddenPropertyOperation() [4/4]
Retrieve the overridable operation from the specified the edit property chain node
- Parameters
-
| PropertyIterator | leading to the property interested in, invalid iterator will return the operation of the object itself |
| bOutInheritedOperation | optional parameter to know if the state returned was inherited from a parent property |
- Returns
- the current type of override operation on the property
◆ GetOwner()
◆ GetSubPropertyOperation()
Retrieve the overridable operation given the property key
- Parameters
-
| NodeID | that uniquely identify the property within the object |
- Returns
- the current type of override operation on the property
◆ HandleDeadObjectReferences()
| void FOverriddenPropertySet::HandleDeadObjectReferences |
( |
const TSet< UObject * > & |
ActiveInstances, |
|
|
const TSet< UObject * > & |
TemplateInstances |
|
) |
| |
◆ HandleObjectsReInstantiated()
◆ IsCDOOwningProperty()
| bool FOverriddenPropertySet::IsCDOOwningProperty |
( |
const FProperty & |
Property | ) |
const |
Check if this is an overridden property set of a CDO and that this property is owned by the class of this CDO NOTE: this is used to know if a property should be serialized to keep its default CDO value.
- Parameters
-
- Returns
◆ NotifyAllPropertyChange()
◆ NotifyPropertyChange() [1/2]
Handling and storing modification on a property of an object
- Parameters
-
| Notification | type either pre/post property overridden |
| PropertyIterator | leading to the property that is changing, null means it is the object itself that is changing |
| ChangeType | of the current operation |
| Data | memory of the current property |
◆ NotifyPropertyChange() [2/2]
◆ OverrideProperty()
Utility methods that call NotifyPropertyChange(Pre/PostEdit)
- Parameters
-
| PropertyIterator | leading to the property that is changing, invalid iterator means it is the object itself that is changing |
| Data | memory of the current property |
◆ Reset()
| void FOverriddenPropertySet::Reset |
( |
bool |
bShouldDirtyObject = true | ) |
|
Resets all overrides of the object
◆ RestoreOverriddenPropertyOperation() [1/2]
Restores the overridable operation of the current property from the serialized property chain and the specified property
- Parameters
-
| Operation | to set for this property |
| CurrentPropertyChain | leading to the property being serialized if any, null or empty it will return the node of the object itself |
| Property | being serialized if any, if null it will fallback on the last property of the chain |
- Returns
- the node containing the information of the overridden property
◆ RestoreOverriddenPropertyOperation() [2/2]
◆ RestoreOverriddenState()
Restore some of the overridden state that is not necessarily restored by the CPFUO (ex: bWasAdded come from the owner of the object and reinstantiating the object does not preserve it)
- Parameters
-
| FromOverriddenProperties | overridable properties to restore from |
◆ RestoreSubObjectOperation()
Restores the overridable operation of a sub object of the specified node.
- Parameters
-
| Operation | to set for this property |
| Node | from where the sub property is owned by |
| SubObject | of the operation |
- Returns
- the node to the sub property
◆ RestoreSubPropertyOperation()
Restores the overridable operation of a sub property of the specified node.
- Parameters
-
| Operation | to set for this property |
| Node | from where the sub property is owned by |
| NodeID | the ID of the sub property |
- Returns
- the node to the sub property
◆ TryGetInstancedSubObjectValue()
◆ WasAdded()
| bool FOverriddenPropertySet::WasAdded |
( |
| ) |
const |
|
inline |
◆ bNeedsSubobjectTemplateInstantiation
| bool FOverriddenPropertySet::bNeedsSubobjectTemplateInstantiation = false |
The documentation for this struct was generated from the following files: