コード例 #1
0
        /*--------------------------------------------------------------------------------------------*/
        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();
        }
コード例 #2
0
        /*--------------------------------------------------------------------------------------------*/
        public virtual void UpdateEdge(Color pColor)
        {
            Edge.SetActive(pColor.a > 0);

            if (pColor != EdgeColor)
            {
                EdgeMeshBuilder.CommitColors(pColor);
            }

            EdgeColor = pColor;
        }