当前位置:网站首页>Behavior tree XML file hot load
Behavior tree XML file hot load
2022-06-26 09:05:00 【LixiSchool】
https://www.behaviac.com/tutorial12_hotreload/
behaviac Both the editor and runtime libraries in the component support hot loading , But only for XML/BSON Format behavior tree file .
In the editor , As long as the currently open behavior tree file is modified outside the editor for some reason ( for example , Force the synchronization of behavior tree files through the file version management system in the project , Or force modification of the behavior tree through a text editor XML Documents, etc. ), Then it can be refreshed automatically in the editor .
For the runtime side ( Or program side ), Just modify the behavior tree file in the editor and re export , So you don't have to quit the game while the game is running , The newly exported behavior tree can be loaded automatically . In this way, you can view or use the latest modification effect of the behavior tree in time .
Please refer to... For the update execution process of the behavior tree Update process .
To start the hot load function , You need to make sure that... Is called directly or indirectly on the runtime side Workspace::DebugUpdate() function , There are two ways :
- If Agent The behavior tree of is by calling Workspace::Update() For centralized execution , There is no need to call Workspace::DebugUpdate() function
- If Agent The behavior tree of is by calling Agent::btexec() To perform the , You need to call each time the game is updated Workspace::DebugUpdate() function
边栏推荐
猜你喜欢
phpcms小程序插件教程网站正式上线
修复小程序富文本组件不支持video视频封面、autoplay、controls等属性问题
教程1:Hello Behaviac
Phpcms V9 mall module (fix the Alipay interface Bug)
Yolov5进阶之二安装labelImg
Drawing with MATLAB (1)
How to convert wechat applet into Baidu applet
Phpcms V9 background article list adds one click push to Baidu function
Solution to the encoding problem encountered by the crawler when requesting get/post
Yolov5进阶之四训练自己的数据集
随机推荐
Computer mall based on SSM
Construction and verification of mongodb sharding environment (redis final assignment)
Yolov5进阶之三训练环境
Speckle denoising method for ultrasonic image
Detailed explanation of traditional image segmentation methods
Yolov5 advanced 5 GPU environment setup
Phpcms V9 background article list adds one click push to Baidu function
External sorting and heap size knowledge
[QNX Hypervisor 2.2用户手册]12.1 术语(一)
Yolov5进阶之四训练自己的数据集
Phpcms V9 mobile phone access computer station one-to-one jump to the corresponding mobile phone station page plug-in
Dedecms applet plug-in is officially launched, and one click installation does not require any PHP or SQL Foundation
1.21 study gradient descent and normal equation
torch. fft
Yolov5 advanced camera real-time acquisition and recognition
基于SSM的毕业论文管理系统
Practice is the fastest way to become a network engineer
cookie session 和 token
【IVI】15.1.2 系统稳定性优化篇(LMKD Ⅱ)PSI 压力失速信息
基于SSM的电脑商城