unreal.BlackboardKeySelector

class unreal.BlackboardKeySelector(allowed_types: None = [], selected_key_name: Name = 'None', selected_key_type: Class = Ellipsis, selected_key_id: int = 0, none_is_allowed_value: bool = False)

Bases: StructBase

helper struct for defining types of allowed blackboard entries (e.g. only entries holding points and objects derived form actor class)

C++ Source:

  • Module: AIModule

  • File: BehaviorTreeTypes.h

Editor Properties: (see get_editor_property/set_editor_property)

  • allowed_types (Array[BlackboardKeyType]): [Read-Write] array of allowed types with additional properties (e.g. uobject’s base class) EditAnywhere is required for FBlackboardSelectorDetails::CacheBlackboardData()

  • none_is_allowed_value (bool): [Read-Write]

  • selected_key_id (int32): [Read-Write] ID of selected key

  • selected_key_name (Name): [Read-Write] name of selected key

  • selected_key_type (type(Class)): [Read-Write] class of selected key

property allowed_types: None

[Read-Write] array of allowed types with additional properties (e.g. uobject’s base class) EditAnywhere is required for FBlackboardSelectorDetails::CacheBlackboardData()

Type:

(Array[BlackboardKeyType])

property none_is_allowed_value: bool

[Read-Write]

Type:

(bool)

property selected_key_id: int

[Read-Write] ID of selected key

Type:

(int32)

property selected_key_name: Name

[Read-Write] name of selected key

Type:

(Name)

property selected_key_type: Class

[Read-Write] class of selected key

Type:

(type(Class))