/*--------------------------------------------------------------------------------------------*/ 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 UpdateBackground(Color pColor) { Background.SetActive(pColor.a > 0); if (pColor != BackgroundColor) { BackgroundMeshBuilder.CommitColors(pColor); } BackgroundColor = pColor; }