Skip to content

Commit 9e14b84

Browse files
committed
docs: update
1 parent 0828a67 commit 9e14b84

File tree

4 files changed

+28
-13
lines changed

4 files changed

+28
-13
lines changed

Assets/JCSUnity/Scripts/JCS_Constants.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@ public static class JCS_Constants
1616
{
1717
/* Variables */
1818

19-
// Minimum friction value.
19+
// The minimum friction value.
2020
public const float FRICTION_MIN = 0.01f;
2121

22-
// Default effect friction.
22+
// The default effect friction value.
2323
public const float FRICTION = 0.2f;
2424

2525
// Below this threshold is consider close enough.

Assets/JCSUnity/Scripts/UI/JCS_Canvas.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,11 +60,11 @@ public class JCS_Canvas : MonoBehaviour
6060

6161
[Separator("Runtime Variables (JCS_Canvas)")]
6262

63-
[Tooltip("Fade canvas by default.")]
63+
[Tooltip("Turn on when you want to fade the canvas by default.")]
6464
[SerializeField]
6565
private bool mFade = false;
6666

67-
[Tooltip("Fade friction.")]
67+
[Tooltip("How fast the canvas fades.")]
6868
[SerializeField]
6969
[Range(0.0001f, 30.0f)]
7070
private float mFadeFriction = 0.2f;
@@ -84,7 +84,7 @@ public class JCS_Canvas : MonoBehaviour
8484

8585
private JCS_FadeType mFading = JCS_FadeType.IN;
8686

87-
[Tooltip("Time type.")]
87+
[Tooltip("The time type.")]
8888
[SerializeField]
8989
private JCS_TimeType mTimeType = JCS_TimeType.UNSCALED_DELTA_TIME;
9090

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
11
# JCS_Constants
22

33
Place general game constant here.
4+
5+
## Variables
6+
7+
| Name | Description |
8+
|:---------------|:-----------------------------------------------|
9+
| FRICTION_MIN | The minimum friction value. |
10+
| FRICTION | The default effect friction value. |
11+
| NEAR_THRESHOLD | Below this threshold is consider close enough. |

docs/ScriptReference/UI/JCS_Canvas.md

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,21 @@ Control of the canvas component.
44

55
## Variables
66

7-
| Name | Description |
8-
|:----------------|:-------------------------------------------------|
9-
| onShow | Execution when canvas is shown. |
10-
| onHide | Execution when canvas is hidden. |
11-
| mDisplayOnAwake | If true, show on awake time; otherwise, hide it. |
12-
| mMainCanvas | Resizable screen will be attach to this canvas. |
13-
| mActiveSound | Play sound when active the canvas. |
14-
| mDeactiveSound | Play sound when deactive the canvas. |
7+
| Name | Description |
8+
|:----------------|:-----------------------------------------------------|
9+
| onShow | Execution when canvas is shown. |
10+
| onHide | Execution when canvas is hidden. |
11+
| onShowFade | Execution when canvas is shown by fading. |
12+
| onHideFade | Execution when canvas is hidden by fading. |
13+
| mDisplayOnAwake | If true, show on awake time; otherwise, hide it. |
14+
| mMainCanvas | Resizable screen will be attach to this canvas. |
15+
| mFade | Turn on when you want to fade the canvas by default. |
16+
| mFadeFriction | How fast the canvas fades. |
17+
| mFadeInAmount | The full fade in amount of alpha. |
18+
| mFadeOutAmount | The full fade out amount of alpha. |
19+
| mTimeType | The time type. |
20+
| mActiveSound | Play sound when active the canvas. |
21+
| mDeactiveSound | Play sound when deactive the canvas. |
1522

1623
## Functions
1724

0 commit comments

Comments
 (0)