I’m getting this error when I run my application in the editor:
ArgumentOutOfRangeException: < 0 || >= this.Length
Parameter name: startIndex
System.String.LastIndexOf (Char value, Int32 startIndex, Int32 count)
System.String.LastIndexOf (Char value, Int32 startIndex)
UnityEngine.TextEditor.SelectToPosition (Vector2 cursorPosition)
UnityEditor.EditorGUI.DoTextField (UnityEditor.RecycledTextEditor editor, Int32 id, Rect position, System.String text, UnityEngine.GUIStyle style, System.String allowedletters, System.Boolean changed, Boolean reset, Boolean multiline, Boolean passwordField) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Generated/EditorGUI.cs:321)
UnityEditor.EditorGUI.DoFloatField (UnityEditor.RecycledTextEditor editor, Rect position, Rect dragHotZone, Int32 id, Single value, System.String formatString, UnityEngine.GUIStyle style, Boolean draggable) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Generated/EditorGUI.cs:842)
UnityEditor.EditorGUI.FloatField (Rect position, UnityEngine.GUIContent label, Single value, UnityEngine.GUIStyle style) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Generated/EditorGUI.cs:734)
UnityEditor.EditorGUI.FloatField (Rect position, UnityEngine.GUIContent label, Single value) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Generated/EditorGUI.cs:728)
UnityEditor.EditorGUI.PropertyField (Rect position, UnityEditor.SerializedProperty property, Boolean isInstantiatedPrefab) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Generated/EditorGUI.cs:2151)
UnityEditor.GenericInspector.OnOptimizedInspectorGUI (Rect contentRect) (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Inspector/GenericInspector.cs:128)
UnityEditor.InspectorWindow.OnGUI () (at /Users/build/builds/unity-branches-2.5.x/unity-2.5.x/Editor/Mono/Inspector/InspectorWindow.cs:318)
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture) [0x00000]