Astra Unity 2.6.6
Astra Unity Plugin
All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Astra.FileFormats.ObjFile Class Reference

Classes

class  ObjData
 

Static Public Member Functions

static ObjData Import (string path, float scale=1f, bool flipX=true, bool flipFace=true, bool useCorrectMethod=false, bool processSubmeshes=true, bool weldVertices=true, bool weldNormals=true, bool weldUVs=true, bool autoScale=true)
 
static void Export (string path, GameObject go, bool invertX=true, bool flipFace=true, bool bakeMesh=true)
 

Member Function Documentation

◆ Export()

static void Astra.FileFormats.ObjFile.Export ( string  path,
GameObject  go,
bool  invertX = true,
bool  flipFace = true,
bool  bakeMesh = true 
)
inlinestatic

Creates an obj file of the mesh in the game object

◆ Import()

static ObjData Astra.FileFormats.ObjFile.Import ( string  path,
float  scale = 1f,
bool  flipX = true,
bool  flipFace = true,
bool  useCorrectMethod = false,
bool  processSubmeshes = true,
bool  weldVertices = true,
bool  weldNormals = true,
bool  weldUVs = true,
bool  autoScale = true 
)
inlinestatic

Creates a procedural game object from an obj file NOTE: does NOT add verts


The documentation for this class was generated from the following file: