Table of Contents

Class MapRenderer

Namespace
Map.Rendering
Assembly
MapAssembly.dll

Creates and manages the single quad mesh for texture-based map rendering

[RequireComponent(typeof(MeshFilter), typeof(MeshRenderer))]
public class MapRenderer : MonoBehaviour
Inheritance
object
MapRenderer

Methods

GetMaterial()

Get the current map material

public Material GetMaterial()

Returns

Material

SetMapSize(Vector2)

Update map dimensions and regenerate quad

public void SetMapSize(Vector2 newSize)

Parameters

newSize Vector2

SetMaterial(Material)

Set the material for map rendering

public void SetMaterial(Material material)

Parameters

material Material