Skip to content

Commit 744a2c8

Browse files
committed
Add comment.
1 parent 03da975 commit 744a2c8

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Assets/JCSUnity/Scripts/JCS_Screen.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,9 @@ namespace JCSUnity
1717
/// </summary>
1818
public static class JCS_Screen
1919
{
20+
/// <summary>
21+
/// Screen's width includes safe area view calculation.
22+
/// </summary>
2023
public static int width
2124
{
2225
get
@@ -29,6 +32,9 @@ public static int width
2932
}
3033
}
3134

35+
/// <summary>
36+
/// Screen's height includes safe area view calculation.
37+
/// </summary>
3238
public static int height
3339
{
3440
get
@@ -41,6 +47,9 @@ public static int height
4147
}
4248
}
4349

50+
/// <summary>
51+
/// Safe way to se screen's resolution base on platforms.
52+
/// </summary>
4453
public static void SetResolution(int width, int height, bool fullscreen, int preferredRefreshRate = 0)
4554
{
4655
#if !(UNITY_IOS || UNITY_ANDROID)

0 commit comments

Comments
 (0)