Notes for 4.22

In the following lecture we will be putting controllers into seperate actors. The code in the lecture won't work in 4.22, you will need to add set the owner of the hand controller actor:

LeftController = GetWorld()->SpawnActor<AHandController>(HandControllerClass);
if (LeftController != nullptr)
{
    LeftController->AttachToComponent(VRRoot, FAttachmentTransformRules::KeepRelativeTransform);
    LeftController->SetHand(EControllerHand::Left);
    LeftController->SetOwner(this); // FIX FOR 4.22
}

RightController = GetWorld()->SpawnActor<AHandController>(HandControllerClass);
if (RightController != nullptr)
{
    RightController->AttachToComponent(VRRoot, FAttachmentTransformRules::KeepRelativeTransform);
    RightController->SetHand(EControllerHand::Right);
    RightController->SetOwner(this); // FIX FOR 4.22
} 

Thanks to Simon Christoph Stein for the fix.