入门安装
安装
- 需要 Unreal Engine 5.6、5.7 或 5.8。
- Windows(Win64)、Linux、Mac、Android 或 iOS。
- Crushform 会自动启用它所需的引擎插件:Niagara、Chaos Vehicles 和 Enhanced Input;在编辑器中还会启用 Geometry Processing 和 Mesh Modeling Toolset。
从 Fab 安装
Section titled “从 Fab 安装”- 在 Epic Games Launcher 中打开你的 Fab Library,找到 Crushform,然后为你的引擎版本选择 Install to Engine。
- 打开你的项目,进入 Edit › Plugins。
- 在 Physics 下找到 Crushform,勾选它,然后重启编辑器。
作为项目插件安装
Section titled “作为项目插件安装”如需让插件随项目一起保存(用于源代码管理或构建机器),请将 Crushform 文件夹复制到 YourProject/Plugins/ 中。如果项目包含 C++ 代码,请重新生成项目文件。
在 C++ 中使用
Section titled “在 C++ 中使用”将你调用的模块添加到你的模块的 Build.cs 中。纯蓝图项目无需在此进行任何操作。
PublicDependencyModuleNames.AddRange(new string[] { "Crushform", "CrushformVehicle", "CrushformChaos" });检查插件是否正常工作
Section titled “检查插件是否正常工作”- 在 Content Browser 中打开 Settings,勾选 Plugin Content。
- 打开
/Crushform/ProvingGround/Maps/Lvl_ProvingGround(Plugins › Crushform Content › ProvingGround › Maps),然后按 Play。驾驶轿车驶过斜坡,并撞进危险物中。 - 用波浪号键(~)打开控制台,运行
Crushform.Stats,以输出 Crushform 在世界中追踪的内容。