Search Unity

Platform Specific Plugins With Overlapping Namespaces - IDE Compatibility

Discussion in 'Scripting' started by Trepidation, Aug 31, 2017.

  1. Trepidation

    Trepidation

    Joined:
    Aug 24, 2012
    Posts:
    1
    I'm using PlayerIO for multiplayer. Their Unity plugin performs shenanigans with GameObjects including calling DontDestroyOnLoad, which throws InvalidOperationException when running from an Editor script (need this to write an editor extension to move data from ScriptableObjects into their DB). They also have a plain C# SDK, which seems shenanigan-free.

    Unfortunately both plugins use the same namespace and classes, confusing my IDE (Rider) significantly. Unity, however, is happy to compile as long as the plugins are marked to exclude the irrelevant platform. Otherwise, Unity complains that it can't resolve references to classes in that namespace.

    Anyone else have a situation where plugins for different platforms have overlapping namespaces? How do you get your IDE to accept them?