Skip to content

Commit 47ce286

Browse files
committed
fix(Camera): Respect enabled and active status
1 parent 3a118c0 commit 47ce286

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Assets/JCSUnity/Scripts/JCS_Camera.cs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -689,6 +689,9 @@ private void DoBoundaries()
689689
if (mBoundary == null)
690690
return;
691691

692+
if (!mBoundary.gameObject.activeSelf || !mBoundary.enabled)
693+
return;
694+
692695
Bounds bounds = mBoundary.GetBounds();
693696

694697
Vector3 camPos = this.transform.position;

0 commit comments

Comments
 (0)