Hello. I have been working with Nvidia Waveworks recently and have an issue.
I have a component called WaveWorksFloating that has a UStaticMeshComponent* variable name BuoyancyBodyComponent. When I attach WaveWorksFloating component to a static mesh and use this cast to set it:
BuoyancyBodyComponent = Cast<UStaticMeshComponent>(GetOwner()->GetComponentByClass(UStaticMeshComponent::StaticClass()));
It works as expected. However, when I attach WaveWorksFloating to a blueprint actor or c++ actor that has a Static Mesh Component, it no longer works. I am having a hard time trying to fix this and could use some help. Thanks
link to image of issue on imgur