stop all haptics on end play in order to make sure the glove won't get stuck in haptics feedbacks
This commit is contained in:
@@ -624,6 +624,11 @@ bool USGVirtualHandComponent::FImpl::InitializeBackend() const
|
||||
|
||||
bool USGVirtualHandComponent::FImpl::UninitializeBackend() const
|
||||
{
|
||||
if (IsValid(Owner->Glove))
|
||||
{
|
||||
Owner->Glove->StopHaptics();
|
||||
}
|
||||
|
||||
// NOTE
|
||||
// In Editor builds we should be avoiding dispose, since stopping the game in PIE mode, causes the virtual-hand
|
||||
// to disappear in the editor as the plugin won't be able to retrieve the glove status anymore.
|
||||
|
||||
Reference in New Issue
Block a user