본문 바로가기
Leaning/언리얼

06-05 UE5 Behavior Tree, Blackboard

by ksw8596 2024. 6. 5.

Behavior Tree, Blackboard

Log 찍어보면서 해보기

 

 

AI Controller에서 하는 방법

Controller->Charater <- AI <- BT 형식으로 되어있다.

ex) Controller를 사용하는경우 : AI를 전략시뮬레이션, or AI 캐릭터를 사용해야할 경우

 

Blackboard -> Notify Observer

On Result Change

On Value Change

 

 

 

 

BacteriaAIController.h

BacteriaAIController.cpp

 

 

  • BB_Bacteria

 

  • BT_Bacteria

 

참조 API

https://dev.epicgames.com/documentation/ko-kr/unreal-engine/behavior-tree-in-unreal-engine---overview?application_version=5.3

 

https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/AIModule/BehaviorTree/UBlackboardComponent/SetValueAsVector?application_version=5.3

 

https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/AIModule/AAIController/GetBlackboardComponent/2?application_version=5.0

 

https://dev.epicgames.com/documentation/en-us/unreal-engine/unreal-engine-behavior-tree-node-reference-composites?application_version=5.3

 

https://dev.epicgames.com/documentation/ko-kr/unreal-engine/unreal-engine-behavior-tree-node-reference-decorators?application_version=5.3

 

UBTTaskNode

https://dev.epicgames.com/documentation/ko-kr/unreal-engine/API/Runtime/AIModule/BehaviorTree/UBTTaskNode?application_version=5.3

 

https://dev.epicgames.com/documentation/en-us/unreal-engine/API/Runtime/AIModule/BehaviorTree/Decorators/UBTDecorator_BlackboardBase/GetSelectedBlack-?application_version=5.3