Search code examples
c++inputunreal-engine4virtual-reality

4.24 Motion controllers no longer work after updating from 4.21


I recently updated my VR C++ project from 4.21 to 4.24 and GetComponentLocation() no longer works.

USceneComponent::GetComponentLocation()

Did this change recently?

This is what my hand blueprint(s) look like: enter image description here

Here is what my code looks like for spawning and attaching the hand blueprints: enter image description here

This is the code for getting the location of the motion controller: enter image description here

Edit: bump


Solution

  • I figured it out, I needed to set the owner of the spawned hands, here is the solution:

    enter image description here