/*--------------------------------------------------------------------------------------------*/ protected void UpdateAfterResize() { if (Background != null) { UpdateMesh(MeshType.Background, BackgroundMeshBuilder); BackgroundMeshBuilder.CommitColors(BackgroundColor); } if (Edge != null) { UpdateMesh(MeshType.Edge, EdgeMeshBuilder); EdgeMeshBuilder.CommitColors(EdgeColor); } if (Highlight != null) { UpdateMesh(MeshType.Highlight, HighlightMeshBuilder, vPrevHighAmount); HighlightMeshBuilder.CommitColors(HighlightColor); } if (Select != null) { UpdateMesh(MeshType.Select, SelectMeshBuilder, vPrevSelAmount); SelectMeshBuilder.CommitColors(SelectColor); } UpdateHoverLocalPoints(); }
/*--------------------------------------------------------------------------------------------*/ public virtual void UpdateEdge(Color pColor) { Edge.SetActive(pColor.a > 0); if (pColor != EdgeColor) { EdgeMeshBuilder.CommitColors(pColor); } EdgeColor = pColor; }