Skip to content

Commit 736a8e7

Browse files
author
Roberto De Ioris
authored
Update WritingAColladaFactoryWithPython.md
1 parent e33ef22 commit 736a8e7

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

‎tutorials/WritingAColladaFactoryWithPython.md‎

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,4 +20,14 @@ The subclassing api allows the developer to subclass any UClass (classes exposed
2020
its methods to the reflection system, so an handy class named 'UPyFactory' is exposed by the python plugin:
2121

2222
```python
23+
from unreal_engine.classes import PyFactory
24+
25+
import unreal_engine as ue
26+
27+
class ColladaFactory(PyFactory):
28+
29+
def __init__(self):
30+
ue.log_error('Hello World, i am a useless factory')
2331
```
32+
33+
save the file as collada_factory.py into the /Content/Scripts directory and run it rom the Unreal Engine Python Console.

0 commit comments

Comments
 (0)