OBJWriterUtility.CreateOBJFileContentAsync(GameObject, Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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