MaterialTilingBase
Class in Zigurous.Prototyping
Declaration
public abstract class MaterialTilingBase : MonoBehaviourDescription
Automatically tiles the materials of an object based on its scale.
Properties
| renderer | The renderer component of the material being tiled (Read only). |
| tilingOffset | The texture tiling offset of the material being tiled. |
| scaleMultiplier | The texture scale multiplier of the material being tiled. |
| autoUpdate | Whether the material texture(s) are tiled automatically when the transform changes. |
Methods
| Tile | Tiles the materials of the object. |
| ForceUpdate | Forces the materials to be updated. |
| SetTextureScale | Sets the texture scale of a material. |
| UpdateMaterials | Updates the materials of the object. |
| UpdateMaterialsInEditor | Updates the materials of the object while running in the editor. |