Creating Horizontal Line for your editor script can be a bit difficult for new learners. There are multiple approaches to create a horizontal line but I follow few of the below methods .

  1. Using the EditorGUILayout.LabelField

You can use LabelField and create a slider without any value to make it look like a line.

Code:

EditorGUILayout.LabelField(“”, GUI.skin.horizontalSlider);

How it looks

--

--

Saharukh Mollah

Saharukh Mollah

Technical Artist with a demonstrated history of working in the Gaming industry.