Skip to content

Commit 4d36b5a

Browse files
author
Roberto De Ioris
authored
Update WritingAColladaFactoryWithPython.md
1 parent 12bca64 commit 4d36b5a

1 file changed

Lines changed: 11 additions & 2 deletions

File tree

‎tutorials/WritingAColladaFactoryWithPython.md‎

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -462,10 +462,19 @@ To assign the material to the mesh just add this call before returning the stati
462462
static_mesh.StaticMaterials = [StaticMaterial(MaterialInterface=self.ImportOptions.DefaultMaterial, MaterialSlotName='Main')]
463463
```
464464

465-
You can download the whole script here:
466-
465+
You can download the full updated script here:
467466

467+
https://github.com/20tab/UnrealEnginePython/blob/master/tutorials/WritingAColladaFactoryWithPython_Assets/collada_factory.py
468468

469469
## Automatically add the ColladaFactory on editor startup
470470

471+
When you are satisfied with your new class, you may want to automatically load it at editor/engine boot.
472+
473+
Just remember that the /Content/Scripts/ue_site.py script is automatically imported (if found) on boot, so just create an empty one and insert:
474+
475+
```python
476+
import collada_factory
477+
```
478+
479+
471480
## Improvements and final notes

0 commit comments

Comments
 (0)