Class MapRenderer
Creates and manages the single quad mesh for texture-based map rendering
[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class MapRenderer : MonoBehaviour
- Inheritance
-
objectMapRenderer
Methods
GetMaterial()
Get the current map material
public Material GetMaterial()
Returns
SetMapSize(Vector2)
Update map dimensions and regenerate quad
public void SetMapSize(Vector2 newSize)
Parameters
newSizeVector2
SetMaterial(Material)
Set the material for map rendering
public void SetMaterial(Material material)
Parameters
materialMaterial