• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 9 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0026 秒)

1. 超出文本区域的处理&滚动文本(ActionScript-LayaAir基础篇(AS3)-文本) [ 100%]

...处理,不处理的话内容有可能超出我们舞台。 Laya.display.text 中所使用的API 参数: ![1](img/1.png) hidden:不显示超出文本域的字符。 visible:不进行任何裁切。 scroll:不显示文本域外的字符像素,并且支持scroll接口。 ```typescript package { i...

来源: Laya2.0_文档 发布时间: 20210715

2. 超出文本区域的处理&滚动文本(TypeScript-LayaAir基础篇(TS)-文本) [ 99%]

...处理,不处理的话内容有可能超出我们舞台。 Laya.display.text 中所使用的API 参数: ![1](img/1.png) hidden:不显示超出文本域的字符。 visible:不进行任何裁切。 scroll:不显示文本域外的字符像素,并且支持scroll接口。 ```typescript module laya...

来源: Laya2.0_文档 发布时间: 20210715

3. 超出文本区域的处理&滚动文本(JavaScript-LayaAir基础篇(JS)-文本) [ 98%]

...处理,不处理的话内容有可能超出我们舞台。 Laya.display.text 中所使用的API 参数: ![1](img/1.png) hidden:不显示超出文本域的字符。 visible:不进行任何裁切。 scroll:不显示文本域外的字符像素,并且支持scroll接口。 ```javascript (function()...

来源: Laya2.0_文档 发布时间: 20210714

4. 陀螺仪与加速计(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 89%]

... 下面演示获取旋转方位信息: ```typescript private var info:Text;   public function Gyroscope_Sample()  {  Laya.init(550, 400);     info = new Text();  info.fontSize = 50;  info.color = "#FFFFFF";  info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChil...

来源: Laya2.0_文档 发布时间: 20210714

5. 陀螺仪与加速计(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 88%]

...方位信息: ```typescript class Gyroscope_Sample { private info: Laya.Text; constructor() { Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height); Laya.stage.addChild(this.info); Laya.Gyroscope....

来源: Laya2.0_文档 发布时间: 20210715

6. 陀螺仪与加速计(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 86%]

...转方位信息: ```typescript Laya.init(550, 400); this.info = new Laya.Text(); this.info.fontSize = 50; this.info.color = "#FFFFFF"; this.info.size(Laya.stage.width, Laya.stage.height);  Laya.stage.addChild(this.info);  Laya.Gyroscope.instance.on(Laya.Event.CHANGE, this, onDeviceorientation); ...

来源: Laya2.0_文档 发布时间: 20210714

7. 多线程worker(JavaScript-2D进阶篇(JS)-游戏加载策略) [ 59%]

..., function (e) { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加...

来源: Laya2.0_文档 发布时间: 20210715

8. 多线程worker(TypeScript-2D进阶篇(TS)-游戏加载策略) [ 59%]

..., function (e) { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` 这个例子是在worker中进行加载文件,加...

来源: Laya2.0_文档 发布时间: 20210715

9. 多线程worker(ActionScript-2D进阶篇(AS3)-游戏加载策略) [ 58%]

..., function (e) { var xmlreq = new XMLHttpRequest(); xmlreq.responseType = "text"; xmlreq.onload = function (e) { var data = e.currentTarget.response; self.postMessage(data); } xmlreq.open("get","res/atlas/comp.json"); xmlreq.send() }, false); ``` ​ 这个例子是在worker中进行加载文件,...

来源: Laya2.0_文档 发布时间: 20210715