AsImpL 1.0
Asynchronous Importer and run-time Loader for Unity
AsImpL.ModelReferences Class Reference

Component used to keep track of resources used by a loaded model. More...

Inheritance diagram for AsImpL.ModelReferences:

Public Member Functions

Mesh AddMesh (Mesh mesh)
 Add a reference to a created mesh. More...
 
Material AddMaterial (Material material)
 Add a reference to a created material. More...
 
Texture2D AddTexture (Texture2D texture)
 Add a reference to a created texture. More...
 

Detailed Description

Component used to keep track of resources used by a loaded model.

When the component is destroyed all the referenced resources are destroyed.

This component is added by Loader and it should not be removed.

Member Function Documentation

◆ AddMaterial()

Material AsImpL.ModelReferences.AddMaterial ( Material  material)

Add a reference to a created material.

Parameters
materialcreated material
Returns
The created material itself.

◆ AddMesh()

Mesh AsImpL.ModelReferences.AddMesh ( Mesh  mesh)

Add a reference to a created mesh.

Parameters
meshcreated mesh
Returns
The created mesh itself.

◆ AddTexture()

Texture2D AsImpL.ModelReferences.AddTexture ( Texture2D  texture)

Add a reference to a created texture.

Parameters
texturecreated texture
Returns
The created texture itself.

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