- Home /
Question by
Abdurauf · Sep 25, 2018 at 02:39 PM ·
screensizemonobehaviour
Screen.width alternative?
How can i get Screen size in class without MonoBehaviour class ?
public class someClass{ float screenWidth = SomeSolution.width; }
Comment
Best Answer
Answer by MrMatthias · Sep 25, 2018 at 02:45 PM
Screen width is a static property of the Screen class, you can access it from anywhere