Hope to have a beta available in the next few days. However, it requires some internal changes beyond just the native plugin and I have a few large unrelated changes also pending which all needs to be completed together. The active device is the device that last received input. It does seem entirely doable and I have most of it done, barring testing. Now that you have everything set up, you can query for devices and controls. You can invert this behavior by setting the Invert Y Axis option in the InControlManager component. When false (default), the Y axis will be positive up, the same as Unity. Note: It is a good idea to alter the execution order of the InControlManager component so that every other object which queries the input state gets a consistent value for the duration of the frame, otherwise the update may be called mid-frame and some objects will get the input state from the previous frame while others get the state for the current frame.īy default, InControl reports the Y-axis as positive pointing up to match Unity. WasPressed, WasReleased, WasRepeated and HasChanged will return false. The primary API entry point is the InputManager class. The project is isolated under the C# namespace InControl. You need not adjust any of its settings for now. You can add it to the hierarchy through the editor menu: For convenience, there is a manager component included. Next, you'll need a script attached to a GameObject to initialize and update InControl. A warning will appear in the console letting you know when it needs to be regenerated. Note: InControl contains an editor script that will automatically check this asset. If you require some settings of your own, you can add them to the end of the newly generated list and InControl will do its best to preserve them. This will regenerate the ProjectSettings/InputManager.asset file. You can generate the proper setup for through the editor menu: InControl requires a very specific set of input settings in Unity.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |