09-25-2015 12:43 PM
09-25-2015 01:51 PM
09-25-2015 03:00 PM
"cybereality" wrote:
Are you trying to determine if the user is wearing a Rift or a Gear VR? I don't think that is the way to do it.
Also, Gear VR uses low persistence as well.
09-26-2015 06:14 PM
if ( GEngine->HMDDevice.IsValid() ) //check pointer is valid
{
EHMDDeviceType result = GEngine->HMDDevice->GetHMDDeviceType();
if ( result == EHMDDeviceType::DT_OculusRift ) UE_LOG(LogTemp, Warning, TEXT("Device is Rift"));
else if ( result == EHMDDeviceType::DT_GearVR ) UE_LOG(LogTemp, Warning, TEXT("Device is GearVR"));
else UE_LOG(LogTemp, Warning, TEXT("Device is Other"));
}
else UE_LOG(LogTemp, Error, TEXT("No device found!"));
09-26-2015 09:32 PM