unreal.PropertyHasNameFilter
¶
- class unreal.PropertyHasNameFilter(outer: Object | None = None, name: Name | str = 'None')¶
Bases:
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] The names to match the property name against.default_result
(FilterResult): [Read-Write] What to return for IsActorValid, IsDeletedActorValid, and IsAddedActorValidinclude_struct_subproperties
(bool): [Read-Write] 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] How to compare the property name to AllowedNames