Skip to content

Commit 0e68c29

Browse files
committed
Fixed text not part of the UI issue.
1 parent 58319ff commit 0e68c29

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Assets/JCSUnity/Scripts/Effects/JCS_ScaleEffect.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,8 @@ public class JCS_ScaleEffect
100100
private void Start()
101101
{
102102
// Only need it for the UI.
103-
if (GetObjectType() == JCS_UnityObjectType.UI)
103+
if (GetObjectType() == JCS_UnityObjectType.UI ||
104+
GetObjectType() == JCS_UnityObjectType.TEXT)
104105
{
105106
// Get panel root, in order to calculate the
106107
// correct distance base on the resolution.

Assets/JCSUnity/Scripts/Effects/JCS_SlideEffect.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -187,7 +187,8 @@ protected override void Awake()
187187
private void Start()
188188
{
189189
// Only need it for the UI.
190-
if (GetObjectType() == JCS_UnityObjectType.UI)
190+
if (GetObjectType() == JCS_UnityObjectType.UI ||
191+
GetObjectType() == JCS_UnityObjectType.TEXT)
191192
{
192193
// Get panel root, in order to calculate the
193194
// correct distance base on the resolution.

0 commit comments

Comments
 (0)