Class UVCell
Similar to a sprite cell, but with custom UV coordinates. This type of cell is useful when placing a single texture across multiple cells.
public sealed class UVCell : TileCell, IColorableCell
- Inheritance
-
UVCell
- Implements
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T)Object.Instantiate<T>(T, Vector3, Quaternion)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
Properties
- Color
The main color of the tile. This is used to set the color of tiles dynamically.
- Material
Gets the material used by this cell.
Methods
- OnDestroy()
Called by the game engine.
- SetTexture(Texture2D)
Sets the texture to be used by this cell
- SetUVs(Vector2, Vector2)
Sets the UV scale and offset to use in the material for this cell.