DrawPolyLineWithShadow() public static méthode

public static DrawPolyLineWithShadow ( Color shadowColor, Vector2 screenOffset ) : void
shadowColor Color
screenOffset Vector2
Résultat void
Exemple #1
0
        public static void RenderRectWithShadow(bool active, params Vector3[] corners)
        {
            Vector3[] vector3Array = new Vector3[5] {
                corners[0], corners[1], corners[2], corners[3], corners[0]
            };
            Color color = Handles.color;

            Handles.color = new Color(1f, 1f, 1f, !active ? 0.5f : 1f);
            RectHandles.DrawPolyLineWithShadow(new Color(0.0f, 0.0f, 0.0f, !active ? 0.5f : 1f), new Vector2(1f, -1f), vector3Array);
            Handles.color = color;
        }
Exemple #2
0
        public static void RenderRectWithShadow(bool active, params Vector3[] corners)
        {
            Vector3[] points = new Vector3[]
            {
                corners[0],
                corners[1],
                corners[2],
                corners[3],
                corners[0]
            };
            Color color = Handles.color;

            Handles.color = new Color(1f, 1f, 1f, (!active) ? 0.5f : 1f);
            RectHandles.DrawPolyLineWithShadow(new Color(0f, 0f, 0f, (!active) ? 0.5f : 1f), new Vector2(1f, -1f), points);
            Handles.color = color;
        }