using System.Collections; using System.Collections.Generic; using UnityEngine; namespace BITKit { [RequireComponent(typeof(MeshFilter))] public class VirtualMeshRenderer : MonoBehaviour { public Material material; MeshFilter meshFilter; void Start() { meshFilter = GetComponent(); } // Update is called once per frame void Update() { Graphics.DrawMesh(meshFilter.sharedMesh, transform.position, transform.rotation, material, gameObject.layer); } } }