Skip to content

Commit

Permalink
Call GlobeAnchor.Sync when the parent transform changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
kring committed Nov 30, 2022
1 parent 51f2650 commit 96aa503
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Runtime/CesiumGlobeAnchor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -469,6 +469,11 @@ private void OnEnable()
this.StartOrStopDetectingTransformChanges();
}

private void OnTransformParentChanged()
{
this.Sync();
}

#endregion

#region Coroutines
Expand Down

0 comments on commit 96aa503

Please sign in to comment.