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