Cant do "Using" on ThirdPersonCharacter.cs

Hey UA. I recently found out that the stock input manager doesn’t allow rebinding of keys at runtime. After researching I found out that I need to use a custom input manager to change keys at runtime. I am working on porting all my input over to this new manager and ran into a problem. My players use the ThirdPersonCharacter.cs standard asset for movement and I am trying to change it’s input to the custom input manager. The script with all the input is the ThirdPersonUserControl.cs, but when I try to do using TeamUtility.IO;, unity tells me it can’t find “TeamUtility.IO” But funny thing is, I can import it and use it just fine on any other script. I just can’t do it on the thirdperson one. Any ideas? I feel like it isnt working because of the namespace, but I’m not sure. Thanks people, and sorry for asking soo many questions this past month :stuck_out_tongue:

Add the TeamUtility.IO namespace to ThirdPersonUserControl.cs like this

using System;
using UnityEngine;
using UnityStandardAssets.CrossPlatformInput;

namespace UnityStandardAssets.Characters.ThirdPerson
{
    namespace TeamUtility.IO
    {
        [RequireComponent(typeof (ThirdPersonCharacter))]
        public class ThirdPersonUserControl : MonoBehaviour
        {
            // ThirdPersonUserControl code here
        }
    }
}

See the full class here.

I downloaded TeamUtility.IO and tested it and the the error mo longer exists. I can not say if TeamUtility.IO will work the way you want though.