You probably have a variable called Screen. You can differentiate between them by using UnityEngine.Screen where you want the actual screen size, but it would be better not to use Screen yourself in the first place. This is an example of why it’s a good idea to follow the convention of lowercase names for variables, so you don’t collide with existing methods.