Files
UnrealEngineUWP/Engine/Documentation/Source/Gameplay/GameplayAbilitySystem/GameplayAbilitySystem.CHN.udn
Max Chen 4561801a81 Merging //UE4/Dev-Main to Dev-Editor (//UE4/Dev-Editor) @7119039
#rb none

[CL 7120528 by Max Chen in Dev-Editor branch]
2019-06-21 01:21:43 -04:00

38 lines
2.2 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
INTSourceChangelist:6413624
Availability: Public
Crumbs:
Title: 玩法能力系统
Description: 对玩法能力系统的高层次解读。
Type: overview
Version: 4.20
Parent: Gameplay
Order: 1
Tags: Gameplay Ability System
![](GameplayAbilitySystemTopicImage_01.png "GameplayAbilitySystemTopicImage_01.png")
**玩法能力系统** 是一个高度灵活的框架可用于构建你可能会在RPG或MOBA游戏中看到的能力和属性类型。你可以构建可供游戏中的角色使用的动作或被动能力使这些动作导致各种属性累积或损耗的状态效果实现约束这些动作使用的“冷却”计时器或资源消耗更改能力等级及每个能力等级的能力效果激活粒子或音效等等。简单来说此系统可帮助你在任何现代RPG或MOBA游戏中设计、实现及高效关联各种游戏中的能力既包括跳跃等简单能力也包括你喜欢的角色的复杂能力集。
## 系统设置
由于玩法能力系统是一个插件,需要先启用才能使用。只需两步即可启用它:
* 在 **编辑Edit** -> **插件Plugins** 窗口中启用玩法能力系统插件。
![](GameplayAbilitySystem_Plugin_00.png "GameplayAbilitySystem_Plugin_00.png")
* 要使用此系统的全部功能,添加"GameplayAbilities"、"GameplayTags"和"GameplayTasks"到项目的“(ProjectName).Build.cs”文件中的`PublicDependencyModuleNames`中。这很容易做到,只需找到公用模块列表:
[COMMENT:none]
[/COMMENT]
PublicDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay" });
要使用玩法能力系统,将上述三个模块名称添加到花括号列表中的任意位置,如下所示:
PublicDependencyModuleNames.AddRange(new string[] { "GameplayAbilities", "GameplayTags", "GameplayTasks", "Core", "CoreUObject", "Engine", "InputCore", "HeadMountedDisplay" });
能力系统组件是游戏中的角色访问玩法能力系统的主要接口。此组件管理Gameplay属性运行玩法事件存储玩法能力甚至处理玩家输入到玩法能力激活、确认及取消命令的绑定。任何要与玩法能力系统交互的Actor都应具有能力系统组件。