internal static void ApplyDottedWireMaterial()
{
handleDottedWireMaterial.SetPass(0);
int textureIndex = (Camera.current == null) ? s_HandleDottedWireTextureIndex2D : s_HandleDottedWireTextureIndex;
Internal_SetHandleWireTextureIndex(textureIndex);
}
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); }