Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice
  3. Join us on November 16th, 2023, between 1 pm and 9 pm CET for Ask the Experts Online on Discord and on Unity Discussions.
    Dismiss Notice

Two WSA plugins sharing same placeholder produces errors in 5.4

Discussion in 'Windows' started by skaarjslayer, Aug 11, 2016.

  1. skaarjslayer

    skaarjslayer

    Joined:
    Oct 10, 2013
    Posts:
    108
    In Unity 5.4.0f3, I have a project where two plugins share the same placeholder and that produces an error that it never used to before Unity 5.4:

    Code (CSharp):
    1. GetFileByPath(filePath) == NULL
    2. UnityEditor.HostView:OnGUI()
    I had two plugins share the same placeholder because the plugin I wrote uses a third-party API that has different API for Windows 8.1 and Windows Phone 8.1. To make things easier, I built one version of the plugin for Windows 8.1, and set it in Unity to only compile for Windows 8.1 SDK, and the other version would be built for and set to only compile for Windows Phone 8.1 SDK. They both shared a stub placeholder DLL since the methods were the same and this setup worked pretty well. Now it causes that error. I can probably think of a workaround but I feel like this is a Unity bug.
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,507
    Yeah, this is definitely a bug. Can we have a bug report?
     
  3. skaarjslayer

    skaarjslayer

    Joined:
    Oct 10, 2013
    Posts:
    108
    Case 822480