Forum Discussion

🚨 This forum is archived and read-only. To submit a forum post, please visit our new Developer Forum. 🚨
Anonymous's avatar
Anonymous
5 years ago

Online *** Oculus Interface Ptr Private?

The file OnlineSubsystemOculus.h contains FOnline***OculusPtr objects, but they're private and the accessor methods return the parent IOnline***Ptr object. Is the functionality defined in those classes not supposed to be used (except internally) or does it not matter? The typedef of those types is public and I tried casting, but that fails or I'm doing it wrong, or maybe it only works for blueprint actors, etc.

FOnlineSubsystemOculus* OSS = static_cast<FOnlineSubsystemOculus*>(IOnlineSubsystem::Get());

FOnlineVoiceOculusPtr voice = static_cast<FOnlineVoiceOculusPtr>(OSS->GetVoiceInterface());

FOnlineVoiceOculusPtr voice = Cast<FOnlineVoiceOculusPtr>(OSS->GetVoiceInterface());
I was trying to gain access to FOnlineVoiceOculus::RemoteTalkers so I could hopefully capture the incoming and outgoing voip data, but that variable is private, too and I don't see any accessor methods to obtain it.

1 Reply

Replies have been turned off for this discussion