Falco Engine 3.9.0.1 (beta)
FalcoEngine.MeshRenderer Class Reference
Inheritance diagram for FalcoEngine.MeshRenderer:
FalcoEngine.Component

Public Member Functions

Material GetMaterial (int index)
 Get unique material by index More...
 
Material GetSharedMaterial (int index)
 Get shared material by index More...
 
void SetSharedMaterial (int index, Material material)
 Set shared material at certain index More...
 

Properties

int materialsCount [get]
 Returns the number of the unique materials used by the mesh More...
 
int sharedMaterialsCount [get]
 Returns the number of the shared materials used by the mesh More...
 
Mesh mesh [getset]
 Get or set the mesh for rendering More...
 
- Properties inherited from FalcoEngine.Component
bool enabled [getset]
 Enable or disable this component More...
 
GameObject gameObject [get]
 Get game object at which this component is attached More...
 
bool isUiComponent [get]
 Returns if this component is derived from UIElement (or this is a canvas) or not More...
 

Additional Inherited Members

- Protected Member Functions inherited from FalcoEngine.Component
 Component ()
 

Detailed Description

Definition at line 7 of file MeshRenderer.cs.

Member Function Documentation

◆ GetMaterial()

Material FalcoEngine.MeshRenderer.GetMaterial ( int  index)

Get unique material by index

Parameters
index
Returns

◆ GetSharedMaterial()

Material FalcoEngine.MeshRenderer.GetSharedMaterial ( int  index)

Get shared material by index

Parameters
index
Returns

◆ SetSharedMaterial()

void FalcoEngine.MeshRenderer.SetSharedMaterial ( int  index,
Material  material 
)

Set shared material at certain index

Parameters
index
material

Property Documentation

◆ materialsCount

int FalcoEngine.MeshRenderer.materialsCount
get

Returns the number of the unique materials used by the mesh

Definition at line 14 of file MeshRenderer.cs.

◆ mesh

Mesh FalcoEngine.MeshRenderer.mesh
getset

Get or set the mesh for rendering

Definition at line 24 of file MeshRenderer.cs.

◆ sharedMaterialsCount

int FalcoEngine.MeshRenderer.sharedMaterialsCount
get

Returns the number of the shared materials used by the mesh

Definition at line 19 of file MeshRenderer.cs.


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