예제 #1
0
        public void SetTextAndGetTextOnTextMesh()
        {
            GameObject node = new GameObject();

            SceneNodeView.SetName(node, "TextMeshOwner");
            node.AddComponent <TextMesh>();
            TextView.SetText(node, "Hello world");
            Assert.AreEqual("Hello world",
                            TextView.GetText(node));
            SceneNodeView.SetVisible(node, false);
            Object.DestroyImmediate(node);
        }