UnityEssentials
Small but useful tools and features for Unity
|
Static Public Member Functions | |
static Material | materialOfObject (this MeshRenderer meshRenderer) |
Returns the first instantiated Material assigned to the renderer. More... | |
static Material[] | materialsOfObject (this MeshRenderer meshRenderer) |
Returns all the instantiated materials of this object. More... | |
static Material | materialAsset (this MeshRenderer meshRenderer) |
The shared material of this object. More... | |
static Material[] | materialsAsset (this MeshRenderer meshRenderer) |
The shared materials of this object. More... | |
Definition at line 3 of file MeshRendererExtensions.cs.
|
static |
The shared material of this object.
Any changes to this material will affect all elements linked to the original.
Will modify the asset.
meshRenderer |
Definition at line 36 of file MeshRendererExtensions.cs.
|
static |
Returns the first instantiated Material assigned to the renderer.
Any changes to this material will duplicate the material and will not affect all elements linked to the original.
Will duplicate the material.
meshRenderer |
Definition at line 12 of file MeshRendererExtensions.cs.
|
static |
The shared materials of this object.
Any changes to this materials will affect all elements linked to the originals.
Will modify the assets.
meshRenderer |
Definition at line 48 of file MeshRendererExtensions.cs.
|
static |
Returns all the instantiated materials of this object.
Any changes to this materials will duplicate the materials and will not affect all elements linked to the originals.
Will duplicate the materials.
meshRenderer |
Definition at line 24 of file MeshRendererExtensions.cs.