Quantcast
Channel: Questions in topic: "namespace"
Viewing all articles
Browse latest Browse all 398

Compiled managed dll that references Unity APIs from different Unity versions

$
0
0
Let's say there's some API A in Unity 5.6.x that is deprecated in 2017 and there is some other API B in 2017 that does not exist yet in 5.6.x. Is there any way to create a compiled managed dll that uses API A when run in 5.6.x and API B when run in 2017? It doesn't seem to be possible to use conditional compilation since the defines are evaluated when the dll is generated. As a more tangible example, 5.6.x has UnityEngine.VR.VRSettings while 2017.2b has UnityEngine.XR.XRSettings. Can a compiled dll be created that supports both versions if the code depends on these settings?

Viewing all articles
Browse latest Browse all 398

Trending Articles



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