User Tools

Site Tools


global:input

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
global:input [2016/11/03 21:40]
Mistermind [Control Freak (Mobile Controls)]
global:input [2023/10/05 04:05] (current)
Mistermind [Input Options]
Line 4: Line 4:
 {{ :global:global_inputunity.png?nolink |}} {{ :global:global_inputunity.png?nolink |}}
  
-**Input Manager:** UFE is compatible with different input options.+**Input Manager:** UFE is compatible with different input options.
  
   * **Unity Input Manager:** UFE will attempt to use [[https://docs.unity3d.com/Documentation/Components/class-InputManager.html|Unity's default Input Manager]]. UFE comes with a pre-designed InputManager (located under [[http://docs.unity3d.com/Manual/comp-ManagerGroup.html|Project Settings]]). You can find a copy of this file under the ''ProjectSettings'' folder.   * **Unity Input Manager:** UFE will attempt to use [[https://docs.unity3d.com/Documentation/Components/class-InputManager.html|Unity's default Input Manager]]. UFE comes with a pre-designed InputManager (located under [[http://docs.unity3d.com/Manual/comp-ManagerGroup.html|Project Settings]]). You can find a copy of this file under the ''ProjectSettings'' folder.
   * **cInput (3rd party required):** UFE will attempt to load [[http://cinput2.weebly.com/|cInput 2.0]] if you have it installed. For more information on how to use its references check out their [[http://cinput2.weebly.com/reference-manual.html|reference manual]].   * **cInput (3rd party required):** UFE will attempt to load [[http://cinput2.weebly.com/|cInput 2.0]] if you have it installed. For more information on how to use its references check out their [[http://cinput2.weebly.com/reference-manual.html|reference manual]].
-  * **Control Freak (3rd party required):** Allows the use of mobile control for player 1. A prefab example of Control Freak usage is provided under the ThirdPartyAssets folder. For more information on Control Freak [[http://forum.unity3d.com/threads/203823-Control-Freak-The-Ultimate-Virtual-Controller-for-Unity-Mobile|click here]].+  * ** Rewired (3rd party required):** UFE will attempt to load [[http://guavaman.com/projects/rewired/|Rewired]]. For more information on how to install this plugin [[http://guavaman.com/projects/rewired/docs/Integration.html#UniversalFightingEngine|click here]]. 
 +  * **Control Freak (3rd party required):** Allows the use of mobile control for player 1. A prefab example of Control Freak usage is provided under the ThirdPartyAssets folder. For more information on Control Freak [[https://assetstore.unity.com/packages/tools/input-management/control-freak-2-touch-input-made-easy-11562|click here]]
 +  * **Custom Class**: Use this option to create your own inherited input class. You can also use a component available under UFE called "GUIControlsInterface.cs". Just create a new game object in your hierarchy with the component, then add it to your UFE Manager. Hit the play button and you will see GUI buttons representing controls for player 1. For more information, refer to this [[http://www.ufe3d.com/forum/viewtopic.php?pid=7309#p7309|forum post]]. 
 + 
 +**Force Digital Input:** If disabled, UFE will apply horizontal forces relative to analog input sensitivity.
  
 **Confirm Button:** Choose which of the control buttons will be used to //confirm// options under menus. **Confirm Button:** Choose which of the control buttons will be used to //confirm// options under menus.
Line 35: Line 39:
 ---- ----
 ==== Control Freak (Mobile Controls) ==== ==== Control Freak (Mobile Controls) ====
-For more on Control Freak visit their [[http://www.dansgametools.com|website]].+For more on Control Freak visit their [[https://assetstore.unity.com/packages/tools/input-management/control-freak-2-touch-input-made-easy-11562|website]].
  
  
Line 46: Line 50:
  
 **Control Freak 2.0** **Control Freak 2.0**
-  - Import [[https://www.assetstore.unity3d.com/en/#!/content/11562|Control Freak 2]] to your project.+  - Import [[https://assetstore.unity.com/packages/tools/input-management/control-freak-2-touch-input-made-easy-11562|Control Freak 2]] to your project.
   - A pop-up will ask you to update the Input Manager. Proceed with the installation.   - A pop-up will ask you to update the Input Manager. Proceed with the installation.
   - Under ''Plugins\Control-Freak-2\Add-Ons\'' click on ''CF2-UFE.unitypackage'' and import it to your project.   - Under ''Plugins\Control-Freak-2\Add-Ons\'' click on ''CF2-UFE.unitypackage'' and import it to your project.
   - Switch the input manager on Input Options to Control Freak. You will see a new option: ''Control Freak Preferences''. Unfold it.   - Switch the input manager on Input Options to Control Freak. You will see a new option: ''Control Freak Preferences''. Unfold it.
-  - Drag one of the presets from ''UFE\ThirdPartyAssets\Control-Freak-2\Prefabs\'' to the //Prefab// option. Use the [[http://docs.unity3d.com/Manual/Inspector.html|Inspector]] to adjust these files to your liking.+  - Drag one of the presets from ''UFE\ThirdPartyAssets\Control-Freak-2\Prefabs\'' to the //Prefab// option. Use the [[http://docs.unity3d.com/Manual/Inspector.html|Inspector]] to adjust these files to your liking.
  
  
-  * For more on exporting to Android [[http://docs.unity3d.com/Manual/android-GettingStarted.html|click here]].+  * To have it working on Android you need set the Scripting Backend in your Build -> Player Settings to **IL2CPP**. For more on that check out [[https://forum.unity.com/threads/universal-fighting-engine-2.541442/#post-3815395|this post]]. 
 +  * For more on exporting to Android [[http://docs.unity3d.com/Manual/android-GettingStarted.html|click here]]. 
   * For more on exporting to iOS [[http://docs.unity3d.com/Manual/iphone-GettingStarted.html|click here]].   * For more on exporting to iOS [[http://docs.unity3d.com/Manual/iphone-GettingStarted.html|click here]].
  
Line 76: Line 81:
 Code example:  Code example: 
 <code c#> <code c#>
-// Full code example available at .\UFE\Scripts\CharacterSelectionScript.cs+// Full code example.\UFE\Engine\Scripts\Core\UI\Base\CharacterSelectionScript.cs
 // Change from Keyboard to Joystick // Change from Keyboard to Joystick
 foreach (InputReferences inputRef in UFE.config.player1_Inputs){ foreach (InputReferences inputRef in UFE.config.player1_Inputs){
global/input.1478223613.txt.gz · Last modified: 2016/11/03 21:40 by Mistermind