Exemple #1
0
        void    DrawSelectedBezier(Vector3 startPos, Vector3 endPos, Vector3 startTan, Vector3 endTan, ColorSchemeName colorSchemeName, int width, LinkHighlightMode highlight)
        {
            switch (highlight)
            {
            case LinkHighlightMode.Selected:
                Handles.DrawBezier(startPos, endPos, startTan, endTan, ColorTheme.selectedColor, null, width + 3);
                break;

            case LinkHighlightMode.Delete:
            case LinkHighlightMode.DeleteAndReset:
                Handles.DrawBezier(startPos, endPos, startTan, endTan, ColorTheme.deletedColor, null, width + 2);
                break;

            default:
                break;
            }
            Color c = ColorTheme.GetLinkColor(colorSchemeName);

            Handles.DrawBezier(startPos, endPos, startTan, endTan, c, null, width);
        }