Skip to main content
Participant
March 1, 2017

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.
    This topic has been closed for replies.

    4 replies

    Participant
    March 2, 2017
    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.
    AnywareAuthor
    Participant
    March 2, 2017
    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
    AnywareAuthor
    Participant
    March 6, 2017
    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?
    AnywareAuthor
    Participant
    March 7, 2017
    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.