- Home /
Question by
usernameHed · May 14, 2019 at 03:25 PM ·
editorjoystickscene view
Get input from a Xbox controller in an editor script, in editor mode (when Application is NOT running)
Hello, I want to get the input of an XBOX 360 controller in the editor.
I know that Input doens't work in editor mode, So I have to pass by Event maybe ?
//in a Editor script:
void OnSceneGUI()
{
Event e = Event.current;
switch (e.type)
{
case EventType.KeyDown:
{
Debug.Log("iciiiii");
break;
}
}
But unfortunatly, I found no input when pressing button from a controller (it works in play mode).
Is there any way of getting the input of an xbox 360 controller in an editor script ?
Thanks !
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612201358im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Unable to click on objects in the editor scene view after using a custom shader? 0 Answers
Play Mode camera is not resetting to set transform. 0 Answers
How can I check if a key is down in scene view? 1 Answer
How can I get info on object in scene view without selecting it? 0 Answers
Change editor to use Z-axis as vertical 2 Answers