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
| Shader "Custom/Grid" | |
| { | |
| Properties | |
| { | |
| [PerRendererData] | |
| _MainTex("Albedo (RGB)", 2D) = "white" {} | |
| _LineColor("Line Color", Color) = (1,1,1,1) | |
| _CellColor("Cell Color", Color) = (0,0,0,0) | |
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 UnityEditor; | |
| using UnityEngine; | |
| //NOTE: Editor-related scripts should be placed in an Editor folder | |
| namespace Toolbox | |
| { | |
| [CustomPropertyDrawer(typeof(BrushPrefab))] | |
| public class BrushPrefabDrawer : PropertyDrawer | |
| { |