Table of Contents

Class UVCell

Namespace
Gamelogic.Grids2
Assembly
Gamelogic.Grids2.dll

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.runInEditMode
Component.GetComponent<T>()
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentsInParent<T>()
Component.transform
Component.gameObject
Component.tag
Object.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.name
Object.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.