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 .
- 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);
