- 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):

- JavaScript 網(wǎng)頁編程從入門到精通 (清華社"視頻大講堂"大系·網(wǎng)絡(luò)開發(fā)視頻大講堂)
- 深入淺出WPF
- 羅克韋爾ControlLogix系統(tǒng)應(yīng)用技術(shù)
- Learning Bayesian Models with R
- 微服務(wù)設(shè)計原理與架構(gòu)
- RTC程序設(shè)計:實時音視頻權(quán)威指南
- Python應(yīng)用輕松入門
- Learning Apache Mahout Classification
- C#應(yīng)用程序設(shè)計教程
- 測試架構(gòu)師修煉之道:從測試工程師到測試架構(gòu)師
- 零基礎(chǔ)學(xué)Java第2版
- DevOps 精要:業(yè)務(wù)視角
- Splunk Essentials
- 虛擬現(xiàn)實:引領(lǐng)未來的人機交互革命
- 人件集:人性化的軟件開發(fā)