- Hands-On Artificial Intelligence with Unreal Engine
- Francesco Sapio
- 228字
- 2021-06-24 15:23:30
Creating a NavArea class in Blueprint
Creating a new NavArea class in blueprint is quite straightforward; you just need to create a new Blueprint that inherits from the NavArea class, as shown in the following screenshot:

By convention, the name of the class should start with "NavArea_". We will rename it to NavArea_BPJungle here (I added BP to signify that we have created this with Blueprint, since we are repeating the same task both in Blueprint and in C++). This is what it should look like in the Content Browser:

Then, if you open the blueprint, you will be able to assign the custom costs to the area. You can also specify a specific color for your area so that it is easy to recognize when you build your Nav Mesh. This is what the Details panel looks like by default:

Now, we can customize as per our needs. For example, we might want to have a cost to enter the Jungle, and a slightly higher cost to traverse it. We are going to use a bright green for the color, as shown in the following screenshot:

Once compiled and saved, we can assign this newly created area to the Nav Modifier Volume, as shown in the following screenshot:

This is what our finished class looks like in our level (if the Navigation Mesh is visible):

- ASP.NET Core 5.0開(kāi)發(fā)入門(mén)與實(shí)戰(zhàn)
- Essential Angular
- Python自然語(yǔ)言處理(微課版)
- 人人都是網(wǎng)站分析師:從分析師的視角理解網(wǎng)站和解讀數(shù)據(jù)
- Keras深度學(xué)習(xí)實(shí)戰(zhàn)
- C++從入門(mén)到精通(第5版)
- 軟件供應(yīng)鏈安全:源代碼缺陷實(shí)例剖析
- Flowable流程引擎實(shí)戰(zhàn)
- Azure Serverless Computing Cookbook
- Java Web開(kāi)發(fā)實(shí)例大全(基礎(chǔ)卷) (軟件工程師開(kāi)發(fā)大系)
- Java7程序設(shè)計(jì)入門(mén)經(jīng)典
- Angular Design Patterns
- LabVIEW數(shù)據(jù)采集
- Python Automation Cookbook
- AngularJS UI Development