cancel
Showing results for 
Search instead for 
Did you mean: 

Are you good at C# scripts coding?

Anonymous
Not applicable
I am trying to make very simple interaction with C# coding.

This is a whole new world for me 🙂


emm1fioy1pnw.png
8 REPLIES 8

Anonymous
Not applicable
@jikkimi I'd love to help out if I can. Let me know!

Anonymous
Not applicable
Thanks, Hassan.
Do you know how to make interactions with gamepad for GearVR?

Aquma4Livez
Protege
Not 100% sure, but I think it would be the Input Manager: 

https://docs.unity3d.com/ScriptReference/Input.html ;

This asset Rewired has excellent support for the gamepad handed out at Oculus (SteelSeries Stratus XL for Android): https://www.assetstore.unity3d.com/en/#!/content/21676

This is what I am using to support all the input for my application. Simply turn on Bluetooth on the phone and sync with the controller.

Anonymous
Not applicable
@Aquma4Livez @FrancisRedi @hassank
Thank you, bros!!! It's not enough time to code out, but your suggestions will be very helpful.

Anonymous
Not applicable
I've never done gamepad input, but the above suggestions look promising. I would also check out this page for a quick intro to inputs: https://docs.unity3d.com/Manual/ConventionalGameInput.html

A lot of the standard inputs are mapped to VR/gamepads by the SDK I believe. For example, Input.GetButtonDown("Escape") would respond to the escape button and back on a GearVR.

Anonymous
Not applicable
Input Manager is fine for your demo project, but if you want to support a BUNCH of controllers, Rewired or InControl are worth the money. However, someone nicely has posted the button mappings you need for getting the controller Oculus gave us (Steelseries Stratus XL) and that is for free!

Go into Edit-Project Settings->Input and add new array elements. Call one "Submit" for your button A on the controller. And in your code, Input.GetButtonDown("Submit") will return true if you press the A button. dpad and joysticks are a little different, but the internet has a bunch of info on them as well if you search.

Anonymous
Not applicable
@MissFacetious Another help!!! I should know all above earlier :wink: