Method GetFallbackMaterial
GetFallbackMaterial(Material, Material)
This function returns a material instance using the material properties of a previous material but using the font atlas texture of the new font asset.
Declaration
public static Material GetFallbackMaterial(Material sourceMaterial, Material targetMaterial)
Parameters
| Type | Name | Description |
|---|---|---|
| Material | sourceMaterial | The material containing the source material properties to be copied to the new material. |
| Material | targetMaterial | The font atlas texture that should be assigned to the new material. |
Returns
| Type | Description |
|---|---|
| Material |