From 31db4ac383068d0ba6779312a7ae26de718dc494 Mon Sep 17 00:00:00 2001 From: Alex Menzies Date: Tue, 21 May 2019 14:48:45 -0700 Subject: [PATCH] Fixed scale issue when changing the scale of the root tileset behavior object at runtime --- Assets/Unity3DTiles/Unity3DTile.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Assets/Unity3DTiles/Unity3DTile.cs b/Assets/Unity3DTiles/Unity3DTile.cs index 57a8047..6bac4ae 100644 --- a/Assets/Unity3DTiles/Unity3DTile.cs +++ b/Assets/Unity3DTiles/Unity3DTile.cs @@ -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);