public static void HideDevicesWithProfile(Type type) { if (type.IsSubclassOf(typeof(UnityInputDeviceProfile))) { InputDeviceProfile.Hide(type); } }
/// <summary> /// Hides the devices with a given profile. /// This must be called before the input manager is initialized. /// </summary> /// <param name="type">Type.</param> public static void HideDevicesWithProfile(Type type) { #if NETFX_CORE if (type.GetTypeInfo().IsAssignableFrom(typeof(UnityInputDeviceProfile).GetTypeInfo())) #else if (type.IsSubclassOf(typeof(UnityInputDeviceProfile))) #endif { InputDeviceProfile.Hide(type); } }