
With this script there is no need to copy around DLLs. Static M圜lassWhichUsesPlugin() // static Constructor + dllPath, EnvironmentVariableTarget.Process) Īdd to the class to make sure that the constructor is run at editor launch: If (currentPath != null & currentPath.Contains(dllPath) = false)Įnvironment.SetEnvironmentVariable("PATH", currentPath + Path.PathSeparator + Path.DirectorySeparatorChar + "Plugins" + Path.DirectorySeparatorChar + "x86_64" + Path.DirectorySeparatorChar + "SomePath"

Var currentPath = Environment.GetEnvironmentVariable("PATH",

Put the following static constructor into a class which uses the plugin: static M圜lassWhichUsesPlugin() // static Constructor

