Skip to content

Commit 45eee92

Browse files
author
Roberto De Ioris
authored
Create Collections_API.md
1 parent 0213d2a commit 45eee92

File tree

1 file changed

+40
-0
lines changed

1 file changed

+40
-0
lines changed

docs/Collections_API.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# The Collections API
2+
3+
The ICollectionManager class exposes methods to manage the assets collections:
4+
5+
```python
6+
from unreal_engine import ICollectionManager
7+
8+
print(ICollectionManager.get_collection())
9+
```
10+
11+
The api expects knowledge of a bunch of enums mapped as int:
12+
13+
`ECollectionShareType`
14+
15+
```c
16+
enum Type
17+
{
18+
CST_System,
19+
CST_Local,
20+
CST_Private,
21+
CST_Shared,
22+
CST_All,
23+
}
24+
```
25+
26+
`ECollectionStorageMode`
27+
28+
```c
29+
enum Type
30+
{
31+
Static,
32+
Dynamic,
33+
}
34+
```
35+
36+
37+
38+
### get_collections()
39+
40+
returns the list of collections as a tuple with the form (name, ECollectionShareType)

0 commit comments

Comments
 (0)