UnityEditor.HandleUtility.ApplyDottedWireMaterial C# (CSharp) Method

ApplyDottedWireMaterial() static private method

static private ApplyDottedWireMaterial ( ) : void
return void
        internal static void ApplyDottedWireMaterial()
        {
            handleDottedWireMaterial.SetPass(0);
            int textureIndex = (Camera.current == null) ? s_HandleDottedWireTextureIndex2D : s_HandleDottedWireTextureIndex;
            Internal_SetHandleWireTextureIndex(textureIndex);
        }

Usage Example

        private static bool BeginLineDrawing(Matrix4x4 matrix, bool dottedLines, int mode)
        {
            if (Event.current.type != EventType.Repaint)
            {
                return(false);
            }

            Color col = color * lineTransparency;

            if (dottedLines)
            {
                HandleUtility.ApplyDottedWireMaterial(zTest);
            }
            else
            {
                HandleUtility.ApplyWireMaterial(zTest);
            }
            GL.PushMatrix();
            GL.MultMatrix(matrix);
            GL.Begin(mode);
            GL.Color(col);
            return(true);
        }
All Usage Examples Of UnityEditor.HandleUtility::ApplyDottedWireMaterial