UnityStandardAssets.CrossPlatformInput.VirtualInput.UnRegisterVirtualAxis C# (CSharp) Method

UnRegisterVirtualAxis() public method

public UnRegisterVirtualAxis ( string name ) : void
name string
return void
        public void UnRegisterVirtualAxis(string name)
        {
            // if we have an axis with that name then remove it from our dictionary of registered axes
            if (m_VirtualAxes.ContainsKey(name))
            {
                m_VirtualAxes.Remove(name);
            }
        }

Usage Example

Ejemplo n.º 1
0
 public static void UnRegisterVirtualAxis(string name)
 {
     if (name == null)
     {
         throw new ArgumentNullException("name");
     }
     activeInput.UnRegisterVirtualAxis(name);
 }