- Home /
Custom EditorGUI Problem
this is my custom editor Script:
target.ammoLeft = EditorGUI.FloatField(Rect(0,80,250,15),"Ammo Left in Current Clip",target.ammoLeft);
target.maxAmmo = EditorGUI.FloatField(Rect(0,100,250,15),"Max. Ammo in one Clip",target.maxAmmo);
target.clipLeft = EditorGUI.FloatField(Rect(0,120,250,15),"Ammo Left in Current Clip",target.clipLeft);
target.maxClips = EditorGUI.FloatField(Rect(0,140,250,15),"Ammo Left in Current Clip",target.maxClips);
and how can i resize the float field because the full text isn't visible. thx!
bug.jpg
(10.9 kB)
Comment
Your answer

Follow this Question
Related Questions
Initialising List array for use in a custom Editor 1 Answer
SceneView.onSceneGUIDelegate GUI sorting problem 1 Answer
Where can I find advanced controls for custom editor? 1 Answer
How to combine two buttons in one. Editor window 2 Answers
Why can't I cast Editor.target to my CustomEditor type? 1 Answer