Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Custom Dll is not working in unity , both Uwp and .net platform

Discussion in 'Windows' started by AnandSG, Dec 5, 2019.

  1. AnandSG

    AnandSG

    Joined:
    Oct 5, 2018
    Posts:
    9
    i'm building an application for Hololens , i have a dll build for target platform UWP.
    And i also tried to build it for .net platform. in both the cases i cant able to use my dll, cant access any class/functions.

    Also i tried to build a test dll which has just one function, which works all fine.

    Anybody knows if any specific reason for this?
     
  2. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    Can you elaborate on "can't use my dll"? What does that mean? Do you get any errors?
     
  3. AnandSG

    AnandSG

    Joined:
    Oct 5, 2018
    Posts:
    9
    Nope, no errors only i cant access the class/functions from that dll, even dll itself is not getting recognize when i try to make a object of it in c# script.
     
  4. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,646
    So if you get no errors, what happens when you try to access it? How is the DLL configured in plugin inspector? Can you show me a screenshot?