Skip to content

Commit 157a6b3

Browse files
author
Roberto De Ioris
authored
Update Foliage_API.md
1 parent c1c2063 commit 157a6b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/Foliage_API.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,13 +22,13 @@ To add a UFoliageType to a UWorld just do:
2222

2323
```python
2424

25-
world.add_foliage_type(foliage_type)
25+
world.add_foliage_asset(foliage_type)
2626
```
2727

2828
Eventually you can add a StaticMesh (instead of a FoliageType) directly to the AInstancedFoliageActor:
2929

3030
```python
31-
world.add_foliage_type(ue.load_object(StaticMesh, '/Game/Mesh/StaticMesh001'))
31+
world.add_foliage_asset(ue.load_object(StaticMesh, '/Game/Mesh/StaticMesh001'))
3232
```
3333

3434
Note: unfortunately the foliage editor is not automatically updated, just switch the editor mode manually to the foliage mode to update the assets list.

0 commit comments

Comments
 (0)