Forum Discussion

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

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
  • 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.
  • 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
  • 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?
  • 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.