Navigation
API > API/Editor > API/Editor/BehaviorTreeEditor
| Name | FBehaviorTreeEditor |
| Type | class |
| Header File | /Engine/Source/Editor/BehaviorTreeEditor/Public/BehaviorTreeEditor.h |
| Include Path | #include "BehaviorTreeEditor.h" |
Syntax
class FBehaviorTreeEditor :
public IBehaviorTreeEditor ,
public FAIGraphEditor,
public FNotifyHook
Inheritance Hierarchy
- FEditorUndoClient → FAIGraphEditor → FBehaviorTreeEditor
- FNotifyHook → FBehaviorTreeEditor
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FBehaviorTreeEditor() |
BehaviorTreeEditor.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual ~FBehaviorTreeEditor() |
Destructor | BehaviorTreeEditor.h |
Constants
| Name | Type | Remarks | Include Path |
|---|---|---|---|
| BehaviorTreeMode | const FName | Modes in mode switcher | BehaviorTreeEditor.h |
| BehaviorTreeModeText | FText | BehaviorTreeEditor.h | |
| BlackboardMode | const FName | BehaviorTreeEditor.h | |
| BlackboardModeText | FText | BehaviorTreeEditor.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| BehaviorTree | UBehaviorTree * | The Behavior Tree being edited | BehaviorTreeEditor.h | |
| bForceDisablePropertyEdit | uint32 | BehaviorTreeEditor.h | ||
| bHasMultipleDecoratorBP | uint32 | BehaviorTreeEditor.h | ||
| bHasMultipleServiceBP | uint32 | BehaviorTreeEditor.h | ||
| bHasMultipleTaskBP | uint32 | BehaviorTreeEditor.h | ||
| bIsCurrentBlackboardEntryInherited | bool | Whether the current selection is inherited, stored here so it can be accessed by our details customization | BehaviorTreeEditor.h | |
| BlackboardData | UBlackboardData * | The Blackboard Data being edited | BehaviorTreeEditor.h | |
| BlackboardDetailsView | TSharedPtr< IDetailsView > | The details view we use to display the blackboard | BehaviorTreeEditor.h | |
| BlackboardEditor | TSharedPtr< class SBehaviorTreeBlackboardEditor > | The blackboard editor widget | BehaviorTreeEditor.h | |
| BlackboardView | TSharedPtr< class SBehaviorTreeBlackboardView > | The blackboard view widget | BehaviorTreeEditor.h | |
| bSelectedNodeIsInjected | uint32 | BehaviorTreeEditor.h | ||
| bSelectedNodeIsRootLevel | uint32 | BehaviorTreeEditor.h | ||
| bShowDecoratorRangeLower | uint32 | BehaviorTreeEditor.h | ||
| bShowDecoratorRangeSelf | uint32 | BehaviorTreeEditor.h | ||
| CurrentBlackboardEntryIndex | int32 | The current blackboard selection index, stored here so it can be accessed by our details customization | BehaviorTreeEditor.h | |
| Debugger | TSharedPtr< class FBehaviorTreeDebugger > | BehaviorTreeEditor.h | ||
| DetailsView | TSharedPtr< class IDetailsView > | Property View | BehaviorTreeEditor.h | |
| DocumentManager | TSharedPtr< FDocumentTracker > | BehaviorTreeEditor.h | ||
| FindResults | TSharedPtr< class SFindInBT > | Find results log as well as the search filter | BehaviorTreeEditor.h | |
| FocusedGraphOwner | TWeakObjectPtr< class UBehaviorTreeGraphNode_CompositeDecorator > | BehaviorTreeEditor.h | ||
| GraphEditorTabFactoryPtr | TWeakPtr< FDocumentTabFactory > | BehaviorTreeEditor.h | ||
| OnPackageSavedDelegateHandle | FDelegateHandle | Handle to the registered OnPackageSave delegate | BehaviorTreeEditor.h | |
| ToolbarBuilder | TSharedPtr< class FBehaviorTreeEditorToolbar > | BehaviorTreeEditor.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool CanAccessBehaviorTreeMode() |
Check whether the behavior tree mode can be accessed (i.e whether we have a valid tree to edit) | BehaviorTreeEditor.h | |
bool CanAccessBlackboardMode() |
Check whether the blackboard mode can be accessed (i.e whether we have a valid blackboard to edit) | BehaviorTreeEditor.h | |
bool CanAddBreakpoint() |
BehaviorTreeEditor.h | ||
bool CanAddInputPin() |
BehaviorTreeEditor.h | ||
bool CanCreateNewBlackboard() |
Whether we can currently create a new Blackboard | BehaviorTreeEditor.h | |
bool CanCreateNewDecorator() |
Check to see if we can create a new decorator node | BehaviorTreeEditor.h | |
bool CanCreateNewService() |
Check to see if we can create a new service node | BehaviorTreeEditor.h | |
bool CanCreateNewTask() |
Check to see if we can create a new task node | BehaviorTreeEditor.h | |
bool CanDisableBreakpoint() |
BehaviorTreeEditor.h | ||
bool CanEditWithDebuggerActive() |
Get whether we can edit the tree/blackboard with the debugger active | BehaviorTreeEditor.h | |
bool CanEnableBreakpoint() |
BehaviorTreeEditor.h | ||
bool CanRemoveBreakpoint() |
BehaviorTreeEditor.h | ||
bool CanRemoveInputPin() |
BehaviorTreeEditor.h | ||
bool CanSearchTree() |
BehaviorTreeEditor.h | ||
bool CanToggleBreakpoint() |
BehaviorTreeEditor.h | ||
void CreateNewBlackboard() |
Create a new Blackboard alongside the currently-edited behavior tree | BehaviorTreeEditor.h | |
void CreateNewDecorator() |
Create a new decorator from UBTDecorator_BlueprintBase | BehaviorTreeEditor.h | |
void CreateNewService() |
Create a new service from UBTService_BlueprintBase | BehaviorTreeEditor.h | |
void CreateNewTask() |
Create a new task from UBTTask_BlueprintBase | BehaviorTreeEditor.h | |
void DebuggerSwitchAsset
(
UBehaviorTree* NewAsset |
BehaviorTreeEditor.h | ||
void DebuggerUpdateGraph() |
BehaviorTreeEditor.h | ||
virtual void FocusWindow
(
UObject* ObjectToFocusOn |
BehaviorTreeEditor.h | ||
virtual FText GetBaseToolkitName() |
BehaviorTreeEditor.h | ||
UBehaviorTree * GetBehaviorTree() |
Get the behavior tree we are editing (if any) | BehaviorTreeEditor.h | |
UBlackboardData * GetBlackboardData() |
Get the blackboard we are editing (if any) | BehaviorTreeEditor.h | |
void GetBlackboardSelectionInfo
(
int32& OutSelectionIndex, |
Get the currently selected blackboard entry | BehaviorTreeEditor.h | |
FText GetDebuggerActorDesc() |
BehaviorTreeEditor.h | ||
EVisibility GetDebuggerDetailsVisibility() |
BehaviorTreeEditor.h | ||
TWeakPtr< SGraphEditor > GetFocusedGraphPtr() |
BehaviorTreeEditor.h | ||
FGraphAppearanceInfo GetGraphAppearance() |
BehaviorTreeEditor.h | ||
EVisibility GetInjectedNodeVisibility() |
BehaviorTreeEditor.h | ||
EVisibility GetRangeLowerVisibility() |
BehaviorTreeEditor.h | ||
EVisibility GetRangeSelfVisibility() |
BehaviorTreeEditor.h | ||
EVisibility GetRootLevelNodeVisibility() |
BehaviorTreeEditor.h | ||
TSharedPtr< class FBehaviorTreeEditorToolbar > GetToolbarBuilder() |
Access the toolbar builder for this editor | BehaviorTreeEditor.h | |
virtual FName GetToolkitFName() |
BehaviorTreeEditor.h | ||
virtual FText GetToolkitName() |
BehaviorTreeEditor.h | ||
virtual FText GetToolkitToolTipText() |
BehaviorTreeEditor.h | ||
virtual FLinearColor GetWorldCentricTabColorScale() |
BehaviorTreeEditor.h | ||
virtual FString GetWorldCentricTabPrefix() |
BehaviorTreeEditor.h | ||
void HandleBlackboardEntrySelected
(
const FBlackboardEntry* BlackboardEntry, |
Delegate handler for selection in the blackboard entry list | BehaviorTreeEditor.h | |
TSharedRef< SWidget > HandleCreateNewDecoratorMenu() |
Create the menu used to make a new decorator | BehaviorTreeEditor.h | |
TSharedRef< SWidget > HandleCreateNewServiceMenu() |
Create the menu used to make a new service | BehaviorTreeEditor.h | |
TSharedRef< SWidget > HandleCreateNewTaskMenu() |
Create the menu used to make a new task node | BehaviorTreeEditor.h | |
void HandleDebuggedBlackboardChanged
(
UBlackboardData* InObject |
Delegate handler for when the debugged blackboard changes | BehaviorTreeEditor.h | |
FText HandleGetDebugKeyValue
(
const FName& InKeyName, |
Delegate handler for displaying debugger values | BehaviorTreeEditor.h | |
double HandleGetDebugTimeStamp
(
bool bUseCurrentState |
Delegate handler for retrieving timestamp to display | BehaviorTreeEditor.h | |
bool HandleGetDisplayCurrentState() |
Delegate handler for determining whether to display the current state | BehaviorTreeEditor.h | |
int32 HandleGetSelectedBlackboardItemIndex
(
bool& bOutIsInherited |
Delegate handler used to retrieve current blackboard selection | BehaviorTreeEditor.h | |
bool HandleIsBlackboardModeActive() |
Check whether blackboard mode is current | BehaviorTreeEditor.h | |
void HandleNewNodeClassPicked
(
UClass* InClass |
Handler for when a node class is picked | BehaviorTreeEditor.h | |
virtual bool IncludeAssetInRestoreOpenAssetsPrompt
(
UObject* Asset |
BehaviorTreeEditor.h | ||
bool InEditingMode
(
bool bGraphIsEditable |
BehaviorTreeEditor.h | ||
virtual void InitBehaviorTreeEditor
(
const EToolkitMode::Type Mode, |
BehaviorTreeEditor.h | ||
bool IsDebuggerPaused() |
Get whether the debugger is currently running and the PIE session is paused | BehaviorTreeEditor.h | |
bool IsDebuggerReady() |
BehaviorTreeEditor.h | ||
bool IsNewDecoratorButtonVisible() |
Whether the single button to create a new Blueprint-based decorator is visible | BehaviorTreeEditor.h | |
bool IsNewDecoratorComboVisible() |
Whether the combo button to create a new Blueprint-based decorator from all available base classes is visible | BehaviorTreeEditor.h | |
bool IsNewServiceButtonVisible() |
Whether the single button to create a new Blueprint-based service is visible | BehaviorTreeEditor.h | |
bool IsNewServiceComboVisible() |
Whether the combo button to create a new Blueprint-based service from all available base classes is visible | BehaviorTreeEditor.h | |
bool IsNewTaskButtonVisible() |
Whether the single button to create a new Blueprint-based task is visible | BehaviorTreeEditor.h | |
bool IsNewTaskComboVisible() |
Whether the combo button to create a new Blueprint-based task from all available base classes is visible | BehaviorTreeEditor.h | |
bool IsPropertyEditable() |
BehaviorTreeEditor.h | ||
void JumpToNode
(
const UEdGraphNode* Node |
BehaviorTreeEditor.h | ||
virtual void NotifyPostChange
(
const FPropertyChangedEvent& PropertyChangedEvent, |
BehaviorTreeEditor.h | ||
void OnAddBreakpoint() |
BehaviorTreeEditor.h | ||
void OnAddInputPin() |
BehaviorTreeEditor.h | ||
virtual void OnClassListUpdated() |
BehaviorTreeEditor.h | ||
void OnDebuggerActorSelected
(
TWeakObjectPtr< UBehaviorTreeComponent > InstanceToDebug |
BehaviorTreeEditor.h | ||
void OnDisableBreakpoint() |
BehaviorTreeEditor.h | ||
void OnEnableBreakpoint() |
BehaviorTreeEditor.h | ||
void OnFinishedChangingProperties
(
const FPropertyChangedEvent& PropertyChangedEvent |
BehaviorTreeEditor.h | ||
TSharedRef< class SWidget > OnGetDebuggerActorsMenu() |
BehaviorTreeEditor.h | ||
void OnGraphEditorFocused
(
const TSharedRef< SGraphEditor >& InGraphEditor |
BehaviorTreeEditor.h | ||
void OnNodeDoubleClicked
(
UEdGraphNode* Node |
Delegates. | BehaviorTreeEditor.h | |
void OnNodeTitleCommitted
(
const FText& NewText, |
BehaviorTreeEditor.h | ||
void OnPackageSaved
(
const FString& PackageFileName, |
BehaviorTreeEditor.h | ||
void OnRemoveBreakpoint() |
BehaviorTreeEditor.h | ||
void OnRemoveInputPin() |
BehaviorTreeEditor.h | ||
void OnToggleBreakpoint() |
BehaviorTreeEditor.h | ||
virtual void PostRedo
(
bool bSuccess |
BehaviorTreeEditor.h | ||
virtual void PostUndo
(
bool bSuccess |
BehaviorTreeEditor.h | ||
virtual void RegisterTabSpawners
(
const TSharedRef< class FTabManager >& TabManager |
BehaviorTreeEditor.h | ||
void RegisterToolbarTab
(
const TSharedRef< class FTabManager >& TabManager |
BehaviorTreeEditor.h | ||
void RestoreBehaviorTree() |
Restores the behavior tree graph we were editing or creates a new one if none is available | BehaviorTreeEditor.h | |
void SaveEditedObjectState() |
Save the graph state for later editing | BehaviorTreeEditor.h | |
void SearchTree() |
BehaviorTreeEditor.h | ||
TSharedRef< SWidget > SpawnBlackboardDetails() |
Spawn blackboard details tab | BehaviorTreeEditor.h | |
TSharedRef< SWidget > SpawnBlackboardEditor() |
Spawn blackboard editor tab | BehaviorTreeEditor.h | |
TSharedRef< SWidget > SpawnBlackboardView() |
Spawn blackboard view tab | BehaviorTreeEditor.h | |
TSharedRef< SWidget > SpawnProperties() |
Spawns the tab with the update graph inside | BehaviorTreeEditor.h | |
TSharedRef< SWidget > SpawnSearch() |
Spawns the search tab | BehaviorTreeEditor.h | |
void UpdateToolbar() |
BehaviorTreeEditor.h |
Overridden from IBehaviorTreeEditor
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void DoubleClickNode
(
UEdGraphNode* Node |
BehaviorTreeEditor.h | ||
virtual UEdGraphNode * FindInjectedNode
(
int32 Index |
BehaviorTreeEditor.h | ||
virtual void FocusAttentionOnNode
(
UEdGraphNode* Node |
BehaviorTreeEditor.h | ||
virtual void InitializeDebuggerState
(
FBehaviorTreeDebugger* ParentDebugger |
BehaviorTreeEditor.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void SaveAsset_Execute() |
Called when "Save" is clicked for this asset | BehaviorTreeEditor.h | |
void SetToolbarCreateActionsEnabled
(
bool bActionsEnabled |
BehaviorTreeEditor.h |
Static
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
static FText GetLocalizedMode
(
FName InMode |
Get the localized text to display for the specified mode | BehaviorTreeEditor.h |