一、环境搭建
1.创建一个 Text UI组件
2.设置 Text 的宽高及位置
3.将ttf字体拖入到 工程->Assets 目录下
二、代码加载ttf字体
1.创建一个脚本命名为 “TTFCtrl.js” ,代码如下
2.将“TTFCtrl.js” 脚本挂载到Scenes上,并且指定属性。大功告成!
1.创建一个 Text UI组件
2.设置 Text 的宽高及位置
3.将ttf字体拖入到 工程->Assets 目录下
1.创建一个脚本命名为 “TTFCtrl.js” ,代码如下
2.将“TTFCtrl.js” 脚本挂载到Scenes上,并且指定属性。大功告成!
RHCE 学习笔记之文件系统和磁盘管理09
一、字体制作1.先让美术制作好字体样式,导出成png格式2.下载安装 windows下免费的位图
一、场景搭建1.在Laya->工程->Scenes->新建->页面/场景 新建一个场景命名为“Main”2.设置新建的场景属性3.创建一个T
Laya学习笔记-01文本类Laya学习笔记-02滚动文本Laya学习笔记-03使用Scro
一、什么是ComboBox?laya.ui.ComboBox组件包含一个下拉列表,用户可以从该列表中选择单
一、Dialog简介Dialog组件是一个弹出对话框,实现对话框弹出,拖动,模式窗口功能。
export default class TextCtrl extends Laya.Script { constructor() { super(
举报文章
请选择举报类型
补充说明
0/200
上传截图
格式支持JPEG/PNG/JPG,图片不超过1.9M