I’d like to hide the numerical value display that is shown to the right of the value slider in my custom editor.
I want to simply have labels saying ‘less’ & ‘more’ at either end so the user is not aware of the actual values.
(it’s a non-linear function and the numbers themselves are counter-intuitive)
Using the following only removes the label:
EditorGUILayout.PropertyField( gaps, GUIContent.none, true, GUILayout.MinWidth( 100 ) );
Is there a way to achieve this?
Thanks.
Thanks, that looks promising, but they don't show up in OnInspectorGUI() do they? Hmmm… not posible to embed a GUI.HorizontalSlider in to a GUIContent either. Am I missing a step to get a GUI control to show up in a custom inspector?
– JoeW97Thanks :) Should've guessed… it was there, but just offscreen. Rect r = GUILayoutUtility.GetLastRect(); r.x += 140;r.width -= 150; gaps.floatValue = GUI.HorizontalSlider(r, gaps.floatValue, 0.0F, 10.0F);
– JoeW97