unreal.PropertyHasNameFilter
¶
- class unreal.PropertyHasNameFilter(outer=None, name='None')¶
Bases:
unreal.PropertySelectorFilter
Allows a property when is has a certain name Use case: You only want to allow properties named “MyPropertyName”
C++ Source:
Plugin: LevelSnapshots
Module: LevelSnapshotFilters
File: PropertyHasNameFilter.h
Editor Properties: (see get_editor_property/set_editor_property)
allowed_names
(Set(str)): [Read-Write] Allowed Names: The names to match the property name against.default_result
(FilterResult): [Read-Write] Default Result: What to return for IsActorValid, IsDeletedActorValid, and IsAddedActorValidinclude_struct_subproperties
(bool): [Read-Write] Include Struct Subproperties: Whether to implicitly include sub-properties of structs.Example: AllowedNames contains RelativeLocation. If bIncludeStructSubproperties == true, then the properties X, Y, and Z are included. Otherwise, you must explicitly add them to AllowedNames.
name_matching_rule
(NameMatchingRule): [Read-Write] Name Matching Rule: How to compare the property name to AllowedNames