Forum Discussion
Anonymous
5 years agoOnline *** 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
- AnonymousI discovered there is another way to downcast, which is listed in the official documentation
https://docs.unrealengine.com/en-US/Programming/UnrealArchitecture/SmartPointerLibrary/index.html
And I saw this on the page where someone implemented spatialization in voip and this will compile, but intellisense doesn't recognize it. (Update - I had to delete and regenerate the binaries for intellisense to work)auto oculusVoiceInterface = StaticCastSharedPtr<FOnlineVoiceOculus>(VoiceInterface);
Quick Links
- Horizon Developer Support
- Quest User Forums
- Troubleshooting Forum for problems with a game or app
- Quest Support for problems with your device
Other Meta Support
Related Content
- 2 years ago
- 2 years ago
- 5 months ago