cancel
Showing results for 
Search instead for 
Did you mean: 

Feature Request: #define OCULUS or Similar

Anyware
Explorer
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 4

Toukokuu
Protege
You 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.

Anyware
Explorer
That'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

Anyware
Explorer
Unless 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?

Anyware
Explorer
I figured that each plug-in could add the file in its own Assets folder, but that must not be the case. Thanks for clarifying.