Vector2 DrawProceduralVariable(float startX, float startY, ProceduralVariable variable, GUIContent cont=null){ float spaceY=17; float height=16; float spaceX=85; startX+=2; startY+=2; if(cont==null) cont=new GUIContent(""); EditorGUI.LabelField(new Rect(startX, startY, width, height), cont); startY-=1; cont=new GUIContent(" - Start Value:", "Override the value of default MoveSpeed set in CreepEditor. Only valid if value is set to >0"); EditorGUI.LabelField(new Rect(startX, startY+=spaceY, width, height), cont); variable.startValue=EditorGUI.FloatField(new Rect(startX+spaceX, startY, 40, height), variable.startValue); cont=new GUIContent(" - Increment:", "Override the value of default MoveSpeed set in CreepEditor. Only valid if value is set to >0"); EditorGUI.LabelField(new Rect(startX, startY+=spaceY, width, height), cont); variable.incMultiplier=EditorGUI.FloatField(new Rect(startX+spaceX, startY, 40, height), variable.incMultiplier); cont=new GUIContent(" - Deviation:", "Override the value of default MoveSpeed set in CreepEditor. Only valid if value is set to >0"); EditorGUI.LabelField(new Rect(startX, startY+=spaceY, width, height), cont); variable.devMultiplier=EditorGUI.FloatField(new Rect(startX+spaceX, startY, 40, height), variable.devMultiplier); cont=new GUIContent(" - Min/Max:", "Override the value of default MoveSpeed set in CreepEditor. Only valid if value is set to >0"); EditorGUI.LabelField(new Rect(startX, startY+=spaceY, width, height), cont); variable.minValue=EditorGUI.FloatField(new Rect(startX+spaceX, startY, 40, height), variable.minValue); variable.maxValue=EditorGUI.FloatField(new Rect(startX+spaceX+40, startY, 40, height), variable.maxValue); return new Vector2(spaceX+80, startY); }