Rotating object in 3d using a gamepad

Hello , I am really new to c# , and I tried alot of ways to rotate my object in 3d using right stick on my gamepad but it just wouldnt work , I still dont know how I could do that , so if anyone knows please help me , thanks!

It didnt work thats why I ask

How to report your problem productively in the Unity3D forums:

http://plbm.com/?p=220

This is the bare minimum of information to report:

  • what you want
  • what you tried
  • what you expected to happen
  • what actually happened, especially any errors you see
  • links to documentation you used to cross-check your work (CRITICAL!!!)

If you post a code snippet, ALWAYS USE CODE TAGS:

How to use code tags: https://discussions.unity.com/t/481379