Skip to content

Commit

Permalink
Fixed scale issue when changing the scale of the root tileset behavio…
Browse files Browse the repository at this point in the history
…r object at runtime
  • Loading branch information
Alex Menzies committed May 21, 2019
1 parent 328f472 commit 31db4ac
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Assets/Unity3DTiles/Unity3DTile.cs
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,7 @@ public void RequestContent(float priority)
go.transform.parent = this.tileset.Behaviour.transform;
go.transform.localPosition = Vector3.zero;
go.transform.localRotation = Quaternion.identity;
go.transform.localScale = Vector3.one;
go.layer = this.tileset.Behaviour.gameObject.layer;
go.SetActive(false);
this.Content = new Unity3DTileContent(go);
Expand Down

0 comments on commit 31db4ac

Please sign in to comment.