- Home /
How to reference UnityEngine.dll without strict HintPath?
I'm writing some external tool for my Unity project (localization files aggregator). I need UnityEngine.SystemLanguage. Consequently, I need to reference UnityEngine.dll. The problem is, a HintPath is needed to do it, which differs on different machines/environments.
I can reference my Assembly-CSharp though (it is generated but have the same path and it's guid seems to be constant), but AFAIK there is no way to reference referenced assemblies.
There is also pretty straightforward way to reference it I can see - just copy UnityEngine.dll from engine's files to solution folder (or use NuGet package). Does it differ between operating systems (so, would it work on Windows if I will take one from Linux editor)?
Your answer
![](https://koobas.hobune.stream/wayback/20220612113412im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Can Editor scripts be in external DLL's or assemblies? 1 Answer
Why does Assembly-CSharp reference UnityEditor.dll 0 Answers
in Unity 5, how can I get/set an asset's AssetBundle assignment via scripting? 1 Answer
Does Unity 3.2 support attaching the debugger to an external managed dll? 2 Answers
C# dll "MissingMethodException" - Before first recompile 1 Answer