Search Unity

UnityInterface.h Issue when using Swift Plugin

Discussion in 'Editor & General Support' started by Thirty9, Nov 8, 2018.

  1. Thirty9

    Thirty9

    Joined:
    Apr 6, 2015
    Posts:
    16
    I have a swift plugin for my project and I need to call "UnitySendMessage" in a swift function. In order to do it, I added "import UnityInterface.h" to the Bridging header file so my swift code can call this function. However, doing this gave me 3 errors in the UnityInterface.h (see screenshot)
    upload_2018-11-8_13-54-40.png

    upload_2018-11-8_17-9-3.png

    Does anyone happen to know how to fix this issue?
     
    Last edited: Nov 8, 2018
  2. Thirty9

    Thirty9

    Joined:
    Apr 6, 2015
    Posts:
    16
    Anyone has encountered the issue?