This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| using UnityEngine.UI; | |
| // For a discussion of the code, see: https://www.hallgrimgames.com/blog/2018/11/25/custom-unity-ui-meshes | |
| public class MyUiElement : MaskableGraphic | |
| { | |
| public float GridCellSize = 40f; | |
| [SerializeField] |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| using UnityEngine; | |
| public class MeshBlit : MonoBehaviour | |
| { | |
| public RenderTexture rt; | |
| public Mesh mesh; | |
| public Material material; | |
| public Vector3 meshPosition = new Vector3(0.5f, 0.5f, -1); |
OlderNewer