Search Issue Tracker

By Design

Votes

0

Found in

2017.1.1p3

Issue ID

968448

Regression

No

UnityPluginLoad is not called on 32-bit Windows

Windows

-

To reproduce:
1) Open attached project
2) Build x86 Win Standalone build and run it

Expected: Plugin is run and marked so on-screen text
Actual: It is not

Reproduced in 2017.1.1p3, 2018.1.0a3

Comments (2)

  1. vuplex

    Sep 12, 2019 22:20

    I just ran into this issue and followed the steps in this helpful article to resolve it:

    https://medium.com/@bengreenier/building-native-unity-plugins-with-visual-studio-8f470e5af9ca

    The gist is that the UnityPluginLoad function gets prefixed with an underscore when building for x86 (_UnityPluginLoad) unless you use a .def file. This article I linked to provides an example of a .def file and describes how to set it in Visual Studio.

  2. SteffanDonalLIV

    Mar 30, 2018 17:46

    Not sure if anyone is looking at this anymore, but can anyone suggest a workaround if this is intended?
    Perhaps a link to documentation?

Add comment

Log in to post comment