public void SetWorldScaleY() { GameObject parent = new GameObject(); GameObject child = new GameObject(); SceneNodeView.AddChild(parent, child); SceneNodeView.SetName(parent, "parent"); SceneNodeView.SetName(child, "child"); SceneNodeView.SetLocalScaleY(child, 2.0f); SceneNodeView.SetLocalScaleY(parent, 3.0f); Assert.AreEqual(2.0f, SceneNodeView.GetLocalScaleY(child)); Assert.AreEqual(6.0f, SceneNodeView.GetWorldScaleY(child)); SceneNodeView.SetWorldScaleY(child, 12.0f); Assert.AreEqual(1.0f, SceneNodeView.GetLocalScaleX(parent)); Assert.AreEqual(1.0f, SceneNodeView.GetLocalScaleX(child)); Assert.AreEqual(4.0f, SceneNodeView.GetLocalScaleY(child)); Assert.AreEqual(12.0f, SceneNodeView.GetWorldScaleY(child)); Object.DestroyImmediate(parent); Object.DestroyImmediate(child); }