Skip to content

Commit 52d2c49

Browse files
committed
feat(UI): Lower defaul canvas friction
1 parent 44b63c2 commit 52d2c49

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

Assets/JCSUnity/Scripts/JCS_Constants.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public static class JCS_Constants
2323
public const float FRICTION = 0.2f;
2424

2525
// Below this threshold is consider close enough.
26-
public const float NEAR_THRESHOLD = 0.001f;
26+
public const float NEAR_THRESHOLD = 0.01f;
2727

2828
/* Setter & Getter */
2929

Assets/JCSUnity/Scripts/UI/JCS_Canvas.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ public class JCS_Canvas : MonoBehaviour
9999
[Tooltip("How fast the canvas fades.")]
100100
[SerializeField]
101101
[Range(0.0001f, 30.0f)]
102-
private float mFadeFriction = 0.2f;
102+
private float mFadeFriction = 0.15f;
103103

104104
[Tooltip("Full fade in amount.")]
105105
[SerializeField]

Assets/_Project/Scenes/UI/FT_CanvasFade.unity

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1797,8 +1797,8 @@ GameObject:
17971797
- component: {fileID: 1680700180}
17981798
- component: {fileID: 1680700179}
17991799
- component: {fileID: 1680700178}
1800-
- component: {fileID: 1680700182}
18011800
- component: {fileID: 1680700183}
1801+
- component: {fileID: 1680700182}
18021802
m_Layer: 5
18031803
m_Name: Canvas
18041804
m_TagString: Untagged
@@ -1912,7 +1912,7 @@ MonoBehaviour:
19121912
mDisplayOnAwake: 1
19131913
mMainCanvas: 0
19141914
mFade: 1
1915-
mFadeFriction: 0.2
1915+
mFadeFriction: 0.15
19161916
mFadeInAmount: 1
19171917
mFadeOutAmount: 0
19181918
mTimeType: 7

0 commit comments

Comments
 (0)