Skip to content

Commit 5b3f6c9

Browse files
author
rdeioris
authored
Update ManagingAssets.md
1 parent df28ecf commit 5b3f6c9

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/ManagingAssets.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,15 @@ As an example a Material named 'FooBar' packaged in '/Game/Materials/Mat001' can
2929
(this means a Mat001.uasset will be available in the /Content/Materials directory of the project filesystem)
3030

3131

32+
To get a reference to the asset from python you can use:
33+
34+
```py
35+
import unreal_engine as ue
36+
# get the Mat001.Foobar asset
37+
material = ue.get_asset('/Game/Materials/Mat001.Foobar')
38+
# print material repr
39+
ue.log(material)
40+
# print material properties
41+
ue.log(material.properties())
42+
```
43+

0 commit comments

Comments
 (0)