Editar

Partilhar via


OBJWriterUtility.CreateOBJFileContentAsync(GameObject, Boolean) Method

Definition

Coroutine async method that generates string in OBJ file format of provided GameObject's Mesh, and possibly children.

public:
 static System::Collections::Generic::IEnumerator<System::String ^> ^ CreateOBJFileContentAsync(UnityEngine::GameObject ^ target, bool includeChildren);
public static System.Collections.Generic.IEnumerator<string> CreateOBJFileContentAsync (UnityEngine.GameObject target, bool includeChildren);
static member CreateOBJFileContentAsync : UnityEngine.GameObject * bool -> System.Collections.Generic.IEnumerator<string>
Public Shared Iterator Function CreateOBJFileContentAsync (target As GameObject, includeChildren As Boolean) As IEnumerator(Of String)

Parameters

target
UnityEngine.GameObject

GameObject to target for pulling MeshFilter data

includeChildren
Boolean

Include Mesh data of children GameObjects as sub-meshes in output

Returns

string of all mesh data (no materials) in OBJ file format

Applies to