当前位置:网站首页>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
边栏推荐
- Tensor
- 如何利用最少的钱,快速打开淘宝流量入口?
- 20220623 Adobe Illustrator入门
- Cookie session and token
- Backward usage
- Some commands for remote work
- Computer mall based on SSM
- phpcms v9后台增加阅读量字段,可任意修改阅读量
- Phpcms applet interface new universal interface get_ diy. php
- How to use the least money to quickly open the Taobao traffic portal?
猜你喜欢

Drawing with MATLAB (1)

XSS 跨站脚本攻击

力扣399【除法求值】【并查集】

Drawing with MATLAB (2) -- color ring

Data warehouse (1) what is data warehouse and what are the characteristics of data warehouse

Construction and verification of mongodb sharding environment (redis final assignment)

百度小程序富文本解析工具bdParse

【300+精选大厂面试题持续分享】大数据运维尖刀面试题专栏(一)

Srv6---is-is extension

外部排序和大小堆相关知识
随机推荐
[qnx hypervisor 2.2 user manual]12.1 terminology (I)
phpcms小程序插件api接口升级到4.3(新增批量获取接口、搜索接口等)
Yolov5进阶之四训练自己的数据集
教程1:Hello Behaviac
Selenium builds cookies pool to bypass authentication and anti crawl login
Fourier transform of image
Install Anaconda + NVIDIA graphics card driver + pytorch under win10_ gpu
深度学习论文阅读目标检测篇(七)中文版:YOLOv4《Optimal Speed and Accuracy of Object Detection》
[IVI] 15.1.2 system stability optimization (lmkd Ⅱ) psi pressure stall information
Srv6---is-is extension
External sorting and heap size knowledge
Segmentation of structured light images using segmentation network
Phpcms applet plug-in tutorial website officially launched
Isinstance() function usage
Unity WebGL发布无法运行问题
Dedecms applet plug-in is officially launched, and one click installation does not require any PHP or SQL Foundation
小程序首页加载之前加载其他相关资源或配置(小程序的promise应用)
Machine learning (Part 2)
isinstance()函数用法
docker安装redis