Class MaterialUtils
Runtime Material utilities.
Inherited Members
Namespace: Unity.XR.CoreUtils
Assembly: solution.dll
Syntax
public static class MaterialUtils
Methods
| Name | Description |
|---|---|
| AddMaterial(Renderer, Material) | Adds a material to this renderer's array of shared materials. |
| CloneMaterials(Renderer) | Clones and replaces all materials assigned to a Renderer |
| GetMaterialClone(Renderer) | Clones and replaces the material assigned to a Renderer. |
| GetMaterialClone(Graphic) | Clones and replaces the material assigned to a Graphic. |
| HexToColor(string) | Converts an RGB or RGBA formatted hex string to a Color object. |
| HueShift(Color, float) | Shift the hue of a color by a given amount. |