Skip to content

Commit 36fdba4

Browse files
authored
Added extra info on create_material_instance
Documented the additional parameters for the create_material_instance function.
1 parent 1940a76 commit 36fdba4

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

docs/Material_API.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@ import unreal_engine as ue
7070
material_instance = ue.create_material_instance(new_material)
7171
```
7272

73+
```python
74+
import unreal_engine as ue
75+
# you can also specify a path and a name to the new material instance.
76+
material_instance = ue.create_material_instance(new_material, '/Game/Materials/', 'New Funny Material Instance')
77+
```
78+
79+
7380
Or the factory way:
7481

7582
```python

0 commit comments

Comments
 (0)