Quantcast
Channel: Questions in topic: "dll"
Viewing all articles
Browse latest Browse all 706

How to use Google Optimization Tools DLLs ?

$
0
0
Hi ! I need to use one algorithm from the Google Optimizations Tools (https://developers.google.com/optimization/). I saw they are distributed as DLLs for C#, so I guess there must be some way to use them in Unity. But I couldn't make it work. I downloaded the binaries, and dropped Google.OrTools.dll and Google.Protobuf.dll to my Assets. In Visual Studio, when I add the DLLs using "Add reference", they seem to load correctly (I have auto completion). So I wrote some code. But back in Unity, I get compile errors : Assets/GameManagement/GameManager.cs(7,7): error CS0246: The type or namespace name `Google' could not be found. Are you missing an assembly reference? I tried activating the experimental 4.6 .NET framework in the Player menu. It makes a small difference, as it seems this time Google.Protobuf.dll is recognized, as now I get this error : Assets/GameManagement/GameManager.cs(7,14): error CS0234: The type or namespace name `OrTools' does not exist in the namespace `Google'. Are you missing an assembly reference? I noticed a strange thing : Google.Protobuf.dll loads as a "managed" plugin, while Google.OrTools.dll loads as a "native" plugin. But both are supposed to be C# (as far as I understood). Any idea about how I can make this work ? Thank you very much !!

Viewing all articles
Browse latest Browse all 706

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>