【Unity3D】RTS Engine 笔记五

该博客围绕Unity RTS引擎展开,介绍了单位移动的配置,包括通用、目标、移动、旋转等选项卡设置,以及网格移动、移动管理器的相关内容。还说明了添加单位到地图的方法,如添加到派系和自由派系,涉及UnitManager脚本。

Setup Unit Movement | Unity RTS Engine Documentation

目录

Setup Unit Movement | Unity RTS Engine Documentation

5.2 配置单位移动

5.2.1 通用选项卡

​编辑

5.2.2 设置目标选项卡

5.2.3 移动选项卡​编辑

5.2.4 旋转选项卡​编辑

5.2.5 网格移动

5.2.6 移动管理器​编辑

5.3 添加单位到地图

5.3.1 将单位添加到派系(Add Unit to Faction Slot)

5.3.2 将单位添加到自由派系


5.2 配置单位移动

  • 5.2.1 通用选项卡

  • Code:  代码标识
  • Is Active: 是否启用
  • Priority: 没理解, 说是给目标设置优先级

        When an entity has multiple entity components that allow to have targets, the player can have the entity selected and then right-clicks on a target in the map to assign one of the components a target. This field defines the order in which the components will be considered to set the target. The component with the lowest priority value will be considered first and if it does not allow the target that the player sets, then the component with the next higher priority value will be considered next until one component accepts the target as valid. In our case, we only currently have the Unit Movement component as an entity component on the unit, therefore we can leave the priority

评论 1
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值