Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

unity inspector draw line


   //============================================================
   void GuiLine( int i_height = 1 )
   {
       Rect rect = EditorGUILayout.GetControlRect(false, i_height );
       rect.height = i_height;
       EditorGUI.DrawRect(rect, new Color ( 0.5f,0.5f,0.5f, 1 ) );
   }
Source by forum.unity.com #
 
PREVIOUS NEXT
Tagged: #unity #inspector #draw #line
ADD COMMENT
Topic
Name
9+1 =