Hi every one, a got this little problem:
In the Editor Script:
var scroll : Vector2;
function OnInspectorGUI () {
scroll = EditorGUILayout.BeginScrollView(scroll, GUIStyle.box, GUILayout.MinHeigth(100));
// Some Content.
EditorGUILayout.EndScrollView();
I have tried many ways to draw the scroll view style but I only got this issue:
NullReferenceException: Object reference not set to an instance of an object
UnityEngine.GUILayoutEntry.ApplyOptions (UnityEngine.GUILayoutOption[] options).
I already read the unity manual, and they said it’s possible, this are the options:
BeginScrollView (scrollPosition : Vector2, alwaysShowHorizontal : boolean, alwaysShowVertical : boolean, horizontalScrollbar : GUIStyle, verticalScrollbar : GUIStyle, background : GUIStyle, params options : GUILayoutOption[]) : Vector2.
If any one can help me to understood this, that will be appreciated.
Thanks in advance.