-
Notifications
You must be signed in to change notification settings - Fork 1
BehaviorTreeComponent
29thnight edited this page Nov 27, 2025
·
1 revision
간단 설명: 에디터에서 구축한 BTBuildGraph를 런타임 BTNode 트리로 변환하고 갱신/블랙보드 바인딩을 담당하는 AI 컴포넌트.
| 기능 | 설명 |
|---|---|
| 초기화 |
Initialize, Awake에서 블랙보드 연결 및 트리 빌드 준비 |
| 트리 빌드 |
GraphToBuild() → 내부 BuildTree, BuildTreeRecursively 사용하여 그래프를 실제 노드 트리로 변환 |
| 업데이트 |
InternalAIUpdate(deltaSecond) 호출 시 루트 노드 Tick 수행 |
| 블랙보드 접근 |
GetBlackBoard()로 연결된 블랙보드 반환 |
| 클리어 |
ClearTree()로 빌드 캐시/루트 노드 초기화 |
| 메서드 | 설명 |
|---|---|
Initialize() |
IAIComponent 초기화 구현 |
Awake() |
컴포넌트 기동 시 처리 |
InternalAIUpdate(deltaSecond) |
매 프레임/고정 프레임 AI 처리 Tick 호출 |
OnDestroy() |
컴포넌트 파괴 시 리소스 정리 |
GetBlackBoard() |
현재 사용 중인 BlackBoard* 반환 |
GraphToBuild() |
현재 에디터 그래프를 빌드 요청 |
ClearTree() |
루트/캐시 노드 모두 제거 및 초기화 |
| 필드 | 설명 |
|---|---|
name |
BehaviorTree 이름(식별) |
blackBoardName |
연결할 블랙보드 이름 |
m_BehaviorTreeGuid |
빌드 그래프/트리 리소스 GUID |
m_BlackBoardGuid |
블랙보드 리소스 GUID |
m_pBlackboard |
현재 바인딩된 블랙보드 포인터 |
m_root |
빌드된 BT 루트 노드(shared_ptr) |
m_built |
GUID→노드 포인터 맵 (중복 생성 방지) |
API Reference
Main
PhysicsSystem
RenderEngine
- Animation
- AnimationJob_Internal
- AnimatorData
- BillboardModuleGPU
- BillboardType
- Camera
- CullingManager
- DeviceState
- DeviceState_Deferred_Unsafe
- Foliage
- LightMapping
- MeshRendererProxy
- PipelineStateObject
- PrimitiveRenderProxy
- Projection_RenderPipelinePass
- ProxyCommand
- RenderGraphBuilder
- RenderModules
- RenderPassData
- RenderScene
- RenderScene_ComponentFlows
- Terrain_Foliage_LightMapping
- TerrainBuffers
ScriptBinder
- ActionMap
- AIManager
- AnchorPreset
- AniBehavior
- AnimationBehviourFatory
- AnimationController
- AnimationState
- Animator
- AniTransition
- ArticulationData
- ArticulationLoader
- AvatarMask
- BehaviorTreeComponent
- BillboardType
- BlackBoard
- BlackBoardType
- BlackBoardValue
- BoneMask
- BoxColliderComponent
- BTBuildGraph
- BTBuildNode
- BTEnum
- BTHeader
- CameraComponent
- Canvas
- CapsuleColliderComponent
- CharacterControllerComponent
- Component
- Component_Binding
- ComponentFactory
- ConditionParameter
- CSharpScriptComponent
- CurvePoint
- DecalComponent
- EBodyType
- EffectComponent
- EForceMode
- FoliageComponent
- FoliageInstance
- FoliageType
- FormIntPtr
- FSMState
- FunctionRegistry
- GameObject
- GameObject_Binding
- GameObjectType
- HotLoadSystem
- IAIComponent
- ImageComponent
- InputAction
- InputActionManager
- InputManager
- InvalidScriptComponent
- IObject
- IProjectSetting
- IRegistableEvent
- IRenderable
- IScriptedFSM
- ISerializable
- KeyArray
- KeyBitFlag
- KeyState
- LightComponent
- LightMapping
- LightProperty
- LinkData
- MeshColliderComponent
- MeshRenderer
- ModuleBehavior
- MonoBehaviorRecord
- MonoManager
- MSBuildHelper
- Navigation
- NodeFactory
- Object
- Object_Binding
- PhysicsManager
- PlayerInputComponent
- Prefab
- PrefabEditor
- PrefabUtility
- RagdollComponent
- RectTransform_Binding
- RectTransformComponent
- RegisterReflect
- RenderableComponents
- RigidBodyComponent
- Scene
- SceneManager
- ScriptStringModule
- SoundComponent
- SoundDefinition
- SoundManager
- SphereColliderComponent
- SpriteRenderer
- SpriteSheetComponent
- StateMachineComponent
- TagManager
- TerrainBuffers
- TerrainColliderComponent
- TerrainComponent
- TextComponent
- TransCondition
- Transform
- Transform_Binding
- Transition
- UIButton
- UIComponent
- UIManager
- VolumeComponent
Utility_Framework
- BaseTypeDef
- Benchmark
- BitFlag
- CircularQueue
- ClassProperty
- Core.Assert
- Core.Barrier
- Core.Coroutine
- Core.CountingSemaphore
- Core.Definition
- Core.Fence
- Core.FenceFlag
- Core.Mathf
- Core.Minimal
- Core.OctreeNode
- Core.Property
- Core.Random
- Core.Runtime
- Core.Thread
- Core.ThreadPool
- CoreWindow
- CSVLoader
- DebugStreamBuf
- Delegate
- DeviceResources
- DirectXHelper
- EngineBootstrap
- FileDialog
- FileIO
- GlobalImGuiContext
- HashingString
- HLSLCompiler
- LinkedListLib
- LogEntry
- LogSink
- LogSystem
- MemoryPool
- MetaAlias
- MetaStateCommand
- MetaUtility
- Octree
- PakHelper
- Paklib
- PathFinder
- QuadTree
- Reflection
- RingBuffer
- SimpleIniFile
- SpinLock
- StringHelper
- TimeSystem
- Trim
- TypeDefinition
- TypeIO
- TypeTrait
- WinProcProxy