MaterialTilingBase


Declaration

public abstract class MaterialTilingBase : MonoBehaviour

Description

Automatically tiles the materials of an object based on its scale.

Properties

rendererThe renderer component of the material being tiled (Read only).
tilingOffsetThe texture tiling offset of the material being tiled.
scaleMultiplierThe texture scale multiplier of the material being tiled.
autoUpdateWhether the material texture(s) are tiled automatically when the transform changes.

Methods

TileTiles the materials of the object.
ForceUpdateForces the materials to be updated.
SetTextureScaleSets the texture scale of a material.
UpdateMaterialsUpdates the materials of the object.
UpdateMaterialsInEditorUpdates the materials of the object while running in the editor.