This repository has been archived by the owner on Jan 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 12
Unity Migration Guide
SanghunK edited this page Jul 20, 2021
·
6 revisions
- 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.
- 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.
- 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.
-
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;
-
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()
- Tact File setting may be broken. Please reconnect the tact file in TactSource.
- Namespace changed from Bhaptics.Tac to Bhaptics.Tact
Bhaptics.Tac --> Bhaptics.Tact
Bhaptics.Tac.Unity --> Bhaptics.Tact.Unity
// from
BhapticsManager.HapticPlayer.SubmitRegistered("BowShoot");
// to
BhapticsManager.HapticPlayer.SubmitRegistered(BhapticsManager.GetFeedbackId("BowShoot"));
// 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)
var hapticPlayer = FindObjectOfType<BhapticsManager>().HapticPlayer();
// To
var hapticPlayer = BhapticsManager.HapticPlayer;