fix a few virtual hand component visibility issues
This commit is contained in:
@@ -9,6 +9,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix a bug where the hands are always visible even when `bVisibleWhenHandDataUnavailable` is disabled.
|
||||
- Fix a bug where the `HandVisibilityChangedEvent` event is not triggered on the virtual hand component visibility changes.
|
||||
- Fix the wrong script name for `USGHMDTrackerKismetLibrary`.
|
||||
- Fix the wrong script name for `USGXRTrackerKismetLibrary `.
|
||||
- Fix `LogPython: Warning: 'SGHMDTrackerKismetLibrary' and 'SGXRTrackerKismetLibrary' have the same name (SenseGloveHeadMountDisplayKismetLibrary) when exposed to Python. Rename one of them using 'ScriptName' meta-data.` when packaging the game.
|
||||
|
||||
@@ -731,7 +731,7 @@ void USGVirtualHandComponent::FImpl::RestoreCollisionResponse() const
|
||||
|
||||
void USGVirtualHandComponent::FImpl::SetVisibility(const bool bInVisible)
|
||||
{
|
||||
Owner->SetVisibility(bInVisible, true);
|
||||
Owner->SetHiddenInGame(!bInVisible, false);
|
||||
|
||||
if (bInVisible)
|
||||
{
|
||||
@@ -798,7 +798,7 @@ void USGVirtualHandComponent::FImpl::UpdateVisibility()
|
||||
|
||||
if (bSetNewVisibility)
|
||||
{
|
||||
Owner->SetHiddenInGame(bHandDataAvailable);
|
||||
SetVisibility(bHandDataAvailable);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1986,7 +1986,7 @@ void ASGPawn::FImpl::SetVisibility(USceneComponent* SceneComponent, const bool b
|
||||
return;
|
||||
}
|
||||
|
||||
SceneComponent->SetHiddenInGame(!bVisibility);
|
||||
SceneComponent->SetHiddenInGame(!bVisibility, false);
|
||||
}
|
||||
|
||||
void ASGPawn::FImpl::UpdateHandLocation(const bool bRight, const FVector& Location, const bool bUpdateVirtualHand) const
|
||||
|
||||
Reference in New Issue
Block a user