Unity 3D BehaviorDesigner初用 一些小坑

版本:unity 5.4.1  语言:C#

 

突然发现漏了一章,不过我看了书之后真是一脸懵逼,这本书介绍的知识都是非常实用,但一些勘误和篇幅的原因,真正要学习该知识的话必须自己查资料去深入了解,这本书只是带个头吧。

 

BehaviorDesigner行为树插件,这个东西其实是用图形界面来处理复杂的AI问题,这类图形插件的学习最好是看视频,这里推荐一下泰课上siki老师的教学视频,老师讲得不错,我也得多多学习!

 

这里介绍几个小坑吧,首先是以下错误:

CreateInstanceFromType is not allowed to be called from a ScriptableObject constructor (or instance field initializer), call it in OnEnable instead. Called from ScriptableObject 'BehaviorDesignerWindow'See "Script Serialization" page in the Unity Manual for further details.

 

反正我也没怎么看懂,一开始以为是我用的版本问题,因为下载的是siki老师的破解包,他用的是5.3.1的,我就去下了一个,结果还会报错。

 

问题是什么呢?打开编辑器后有个Inspector,里面有个Comment,这玩意应该是注释,但是你只要用了这个,在里面写了内容就会报错,简直强迫症的噩梦,所以这个报错即使你不理它也是没有问题的。

 

 

然后打Log,我一直打不出Log原因跟上面的错误也是直接相连的,就是我把Log信息放到了Comment中。。。输出Log应该放到Text的内容中。

 

行为树插件的基本使用看了视频后基本没有问题了,简直强大到没有朋友,配合上Animator或者Animation可能不用写代码了。

 

程序员的作用也就越来越小了。。。哈哈,下周继续。

 

This extension requires one license per seat Requires Unity 4.6.0 or higher. Behavior trees are used by AAA studios to create a lifelike AI. With Behavior Designer, you can bring the power of behaviour trees to Unity! Behavior Designer is a behaviour tree implementation designed for everyone - programmers, artists, designers. Behavior Designer offers an intuitive visual editor with a powerful API allowing you to easily create new tasks. It also includes hundreds of tasks, PlayMaker integration, and extensive third party integration making it possible to create complex AIs without having to write a single line of code! Behavior Designer was designed from the ground up to be as efficient as possible with zero allocations after initialization. As a result, it runs great on all platforms including mobile. Behavior Designer is dedicated to behavior trees, which means that each update will be a better behavior tree implementation. Features: - An intuitive visual editor - A powerful API - Visual runtime debugger - Variables to communicate between tasks - Conditional Aborts - Built in event system - Unity 5 multiplayer support - Use existing code with reflection tasks - Hundreds of tasks - Evaluate tasks using Utility Theory - Realtime error detection - Binary or JSON serialization - Data-oriented design - Zero runtime allocations after startup - Object drawers (property drawers) - Includes runtime source code - Extensive documentation and videos - Sample projects available online - And more Addon Packs: - Formations Pack - Movement Pack - Tactical Pack Complete Projects: - Deathmatch AI Kit Third Party Integrations: - 2D Toolkit - A* Pathfinding Project (Movement Pack) - Adventure Creator - Anti-Cheat Toolkit - Apex Path (Movement Pack) - Blox - Camera Path Animator - Chronos - Cinema Director - Control Freak - Core GameKit - Curvy - Dialogue System - DOTween - Final IK - Glow Effect - ICode - Inventory Pro - LeanTween - Love/Hate - Master Audio - NGUI - Particl
评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值