File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
Assets/JCSUnity/Scripts/Managers
docs/ScriptReference/Managers Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change @@ -45,13 +45,13 @@ public class JCS_ScreenManager : JCS_Manager<JCS_ScreenManager>
4545 [ Separator ( "Initialize Variables (JCS_ScreenManager)" ) ]
4646
4747 [ Tooltip ( "Resize screen once on this scene?" ) ]
48- public bool RESIZE_SCREEN_THIS_SCENE = false ;
48+ public bool resizeScreen = false ;
4949
5050 [ Tooltip ( "Aspect ratio screen width for this scene you want to resize." ) ]
51- public int ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE = 16 ;
51+ public int aspectRatioWidth = 16 ;
5252
5353 [ Tooltip ( "Aspect ratio screen height for this scene you want to resize." ) ]
54- public int ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE = 9 ;
54+ public int aspectRatioHeight = 9 ;
5555
5656 /* Setter & Getter */
5757
@@ -86,11 +86,11 @@ private void Start()
8686 {
8787 var ss = JCS_ScreenSettings . FirstInstance ( ) ;
8888
89- if ( RESIZE_SCREEN_THIS_SCENE )
89+ if ( resizeScreen )
9090 {
9191 // Apply new screen aspect ratio.
92- ss . aspectRatioSize . width = ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE ;
93- ss . aspectRatioSize . height = ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE ;
92+ ss . aspectRatioSize . width = aspectRatioWidth ;
93+ ss . aspectRatioSize . height = aspectRatioHeight ;
9494
9595 // Resize the screen base on the new screen aspect ratio.
9696 ss . ForceAspectScreenOnce ( ) ;
Original file line number Diff line number Diff line change @@ -4,11 +4,11 @@ Manages screen action.
44
55## Variables
66
7- | Name | Description |
8- | :--------------------------------------- | :--------------------------------------------------------------|
9- | RESIZE_SCREEN_THIS_SCENE | Resize screen once on this scene? |
10- | ASPECT_RATION_SCREEN_WIDTH_THIS_SCENE | Aspect ratio screen width for this scene you want to resize. |
11- | ASPECT_RATION_SCREEN_HEIGHT_THIS_SCENE | Aspect ratio screen height for this scene you want to resize. |
7+ | Name | Description |
8+ | :------------------| :--------------------------------------------------------------|
9+ | resizeScreen | Resize screen once on this scene? |
10+ | aspectRatioWidth | Aspect ratio screen width for this scene you want to resize. |
11+ | aspectRatioHeight | Aspect ratio screen height for this scene you want to resize. |
1212
1313## Functions
1414
You can’t perform that action at this time.
0 commit comments