Unity Migration Guide - bhaptics/haptic-library GitHub Wiki
Unity SDK Migration Guide 1.5.9 to 1.6.0 - for Android
- The location permission is no longer need. Just use Bluetooth pairing on Android.
- [bHapticsAndroidWidget] prefab is changed to [bHapticsAndroidUI] prefab.
- For more information, see How to set up in the Oculus Quest.
Unity SDK Migration Guide 1.5.* to 1.5.5
- The *.aar files are no longer contains a version.(ex: bhaptics_ble.aar, bhaptics_commons.aar)
- Delete the previous version of the *.aar files. Otherwise, there will be a problem.
Unity SDK Migration Guide 1.5.3 to 1.5.4
- The latest version of the *.aar files in \Assets\Bhaptics\SDK\Plugins\Android\ is 1.10.
- Delete the previous version of the *.aar files. Otherwise, there will be a problem.
Unity SDK Migration Guide 1.5.1 to 1.5.2
-
For smooth migration, it's recommended to Delete Assets\Bhaptics\SDK folder. (If it cannot be deleted, restart Unity.)
-
IsActive -> IsConnect
// AS IS
BhapticsManager.GetHaptic().IsActive(Bhaptics.Tact.PositionType.Head);
// TO BE
BhapticsManager.GetHaptic().IsConnect(Bhaptics.Tact.PositionType.Head);
- public enum Pos (in SimpleHapticClip.cs) -> public enum HapticClipPositionType (in HapticClip.cs)
// AS IS
Pos position = Pos.VestFront;
// TO BE
HapticClipPositionType position = HapticClipPositionType.VestFront;
Unity SDK Migration Guide 1.4 to 1.5
-
Delete BhapticsManager/, except haptic pattern files.
-
HapticPlayer -> IHapic
// AS IS
BhapticsManager.HapticPlayer.IsActive(Bhaptics.Tact.PositionType.Head);
// TO BE
BhapticsManager.GetHaptic().IsActive(Bhaptics.Tact.PositionType.Head);
- AndroidWidget_DeviceManager -> BhapticsAndroidManager
// AS IS
AndroidWidget_DeviceManager.Instance.Ping()
// TO BE
BhapticsAndroidManager.Ping()
Unity SDK Migration Guide from 1.4.4
- Tact File setting may be broken. Please reconnect the tact file in TactSource.
Unity SDK Migration Guide from 1.3.1
- Namespace changed from Bhaptics.Tac to Bhaptics.Tact
Bhaptics.Tac --> Bhaptics.Tact
Bhaptics.Tac.Unity --> Bhaptics.Tact.Unity
Unity SDK Migration Guide from 1.3.0
// from
BhapticsManager.HapticPlayer.SubmitRegistered("BowShoot");
// to
BhapticsManager.HapticPlayer.SubmitRegistered(BhapticsManager.GetFeedbackId("BowShoot"));
Unity SDK Migration Guide from 1.2.2
// from
SubmitRegistered(string key, TransformOption option)
// to
SubmitRegisteredVestRotation(string key, RotationOption option)
// from
SubmitRegistered(string key, float intensityRatio, float durationRatio)
// to
SubmitRegistered(string key, ScaleOption option)
Unity SDK Migration Guide 1.0.3 to 1.0.4
var hapticPlayer = FindObjectOfType<BhapticsManager>().HapticPlayer();
// To
var hapticPlayer = BhapticsManager.HapticPlayer;