3.5. C# Libigl.Editor¶
3.5.1. MeshImportPostprocessor.cs¶
-
class
Libigl.Editor.MeshImportPostprocessor
: public AssetPostprocessor¶ Used for post-processing meshes after importing in the Editor. Only for file formats that Unity recognizes. Simplified version of OffMeshImporter
Private Functions
-
void
OnPostprocessModel
(GameObject g)¶ Called whenever a model is finished importing by the Unity importer. Custom importers will not call this
- Parameters
g
-
void
3.5.2. OffMeshImporter.cs¶
-
class
Libigl.Editor.OffMeshImporter
: public ScriptedImporter¶ A custom importer for .off mesh files, which Unity does not recognize or know how to import by default. See tooltips.
Public Functions
-
override void
OnImportAsset
(AssetImportContext ctx)¶ Called whenever a .off file is imported by Unity Trigger this manually by right-click > Reimport in the project browser
- Parameters
ctx
: Used to store imported output objects
Public Members
-
bool
centerToMean
= true¶
-
bool
normalizeScale
= true¶
-
float
scale
= 1f¶
-
bool
optimizeForRendering
= true¶
-
override void