Editar

Partilhar via


OBJWriterUtility.ExportOBJAsync(GameObject, String, Boolean) Method

Definition

Export mesh data of provided GameObject, and children if enabled, to file provided in OBJ format

public static System.Threading.Tasks.Task ExportOBJAsync (UnityEngine.GameObject root, string filePath, bool includeChildren = true);
static member ExportOBJAsync : UnityEngine.GameObject * string * bool -> System.Threading.Tasks.Task
Public Shared Function ExportOBJAsync (root As GameObject, filePath As String, Optional includeChildren As Boolean = true) As Task

Parameters

root
UnityEngine.GameObject
filePath
String
includeChildren
Boolean

Returns

Remarks

Traversal of GameObject mesh data is done via Coroutine on main Unity thread due to limitations by Unity. If a file does not exist at given file path, a new one is automatically created If applicable, children Mesh data will be bundled into same OBJ file.

Applies to