public static void RequestFloat(string message, string defaultValue, FloatInputDelegate del) { InputBoxWindow window = ScriptableObject.CreateInstance <InputBoxWindow>(); window.position = new Rect(Screen.width / 2, Screen.height / 2, 250, 150); window.message = message; window.floatDelegate = del; window.inputValue = defaultValue; window.ShowPopup(); window.Focus(); }