Attempt to get Screen.Resolution will throw an exception:
Screen.Resolution
Transparent method ... cannot call Critical method ...
Same for World.Raycast() .
World.Raycast()
I can only assume that it’s because of SecurityCritical attribute here and there.
SecurityCritical