Forum Discussion
Anyware
9 years agoExplorer
Feature Request: #define OCULUS or Similar
I'm working on a plug-in that leverages Unity's built-in VR support, but I'd like the plug-in to take advantage of Oculus extended capabilities when the Utilities for Unity are present. It'd be nice to have a #define that I can use to conditionally compile the enhanced functionality.
4 Replies
Replies have been turned off for this discussion
- ToukokuuProtegeYou can add it manually to the player settings or make a editor script to do it. I'm not sure if the utilities should do it all.
- AnywareExplorerThat's what I'm currently doing, but it requires an extra step on behalf of the developer. Workable, but a global define (similar to the built-in Unity defines) would be ideal.
It's easy to add them: https://docs.unity3d.com/Manual/PlatformDependentCompilation.html - AnywareExplorerUnless I've misunderstood the documentation link I provided, the section on "Global custom #defines" seems to imply that just adding a file will do this. Is this not correct?
- AnywareExplorerI figured that each plug-in could add the file in its own Assets folder, but that must not be the case. Thanks for clarifying.
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
- 26 days ago
- 2 months ago
- 3 months ago