Tanoda
NonDrawingGraphic.cs
Go to the documentation of this file.
1
3
5{
8 [AddComponentMenu("Layout/Extensions/NonDrawingGraphic")]
9 public class NonDrawingGraphic : MaskableGraphic
10 {
11 public override void SetMaterialDirty() { return; }
12 public override void SetVerticesDirty() { return; }
13
15 protected override void OnPopulateMesh(VertexHelper vh)
16 {
17 vh.Clear();
18 return;
19 }
20 }
21}
override void OnPopulateMesh(VertexHelper vh)
Probably not necessary since the chain of calls Rebuild()->UpdateGeometry()->DoMeshGeneration()->OnPo...
Credit Erdener Gonenc - @PixelEnvision.