欢迎来到unity学习、unity培训、unity企业培训教育专区,这里有不少U3D资源、U3D培训视频、U3D教程、U3D常见问题、U3D项目源码,咱们致力于打造业内unity3d培训、学习第一品牌。jsp
下面咱们开始今天的Unity3D技能培训。 咱们学习Unity3D培训目标:让U3D初学者能够更快速的掌握U3D技术,自行制做修改素材,能够独立完成2D、3D小规模游戏及网页游戏开发。学习
[csharp] view plaincopythis
- using UnityEngine;
- using System.Collections;
-
- public class Test : MonoBehaviour
- {
- public GameObject testBtn;
- public Font f;
- // Use this for initialization
- void Start()
- {
- UIEventListener.Get(testBtn).onClick += CreatLabel;
- }
-
- // Update is called once per frame
- void Update()
- {
-
- }
-
- void CreatLabel(GameObject go)
- {
- UILabel label = NGUITools.AddChild<UILabel>(gameObject);
- label.trueTypeFont = f;
- label.text = "Test";
- }
- }
更多精彩请点击 http://www.gopedu.com/3d