pyunity.loader module

pyunity.loader.LoadMesh(filename)[source]
pyunity.loader.LoadObj(filename)[source]

Loads a .obj file to a PyUnity mesh.

Parameters

filename (str) – Name of file

Returns

A mesh of the object file

Return type

Mesh

pyunity.loader.LoadScene(sceneName, filePath=None)[source]

Load a scene from a file.

Parameters

sceneName (str) – Name of the scene, without the .scene extension

Returns

Loaded scene

Return type

Scene

pyunity.loader.SaveMesh(mesh, name, filePath=None)[source]
pyunity.loader.SaveScene(scene, filePath=None)[source]

Save a scene to a file.

Parameters

scene (Scene) – Scene to save