Class MeshAnalysisContext
A context object passed by MeshModule to a MeshModuleAnalyzer's Analyze() method.
Inherited Members
Namespace: Unity.ProjectAuditor .Editor.Core
Assembly: Unity.ProjectAuditor.Editor.dll
Syntax
public class MeshAnalysisContext : AnalysisContext
Fields
Importer
The Mesh asset's AssetImporter
Declaration
public AssetImporter Importer
Field Value
Type | Description |
---|---|
Asset |
Remarks
Meshes can be created from source assets by a number of different types of importer in Unity. Therefore, it's important to check the results of any attempts to cast this AssetImporter to an inherited importer type to ensure the cast was successful.
Mesh
The Mesh asset to be analyzed.
Declaration
public Mesh Mesh
Field Value
Type | Description |
---|---|
Mesh |
Name
The name of a Mesh asset to be analyzed.
Declaration
public string Name
Field Value
Type | Description |
---|---|
string |
Size
An estimate of the Mesh's runtime memory footprint.
Declaration
public long Size
Field Value
Type | Description |
---|---|
long |