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

大约有 1,416 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0066 秒)

1371. UI-RefreshList [ 27%]

...ize = 22; texArea.color = "#ffffff"; texArea.leading = 10; texArea.pos(75, 100); texArea.width = 342; texArea.height = 108; } scrollBarIsStopBind(){ return this.scrollBarIsStop; } onListMouse(e, index){ console.log(e.target.name); if (e.type == Event.MOUSE_DOWN) { this.mouseDown = true; //如果单...

来源: Laya2.0_示例 发布时间: 20251219

1372. 属性设置器(JavaScript-IDE篇(JS)-设计模式基础) [ 27%]

...适配。例如我们将left、right、top、bottom的属性值都设置为100,运行后如动图4-3所示。 ![动图4-3](img/4-3.gif) (动图4-3) *Tips:拉伸适配的边距设置方式通常需要结合九宫格来实现。* #### 3.3.3 中心位置适配 中心适配常用于基于屏幕中...

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

1373. 属性设置器(TypeScript-IDE篇(TS)-设计模式基础) [ 27%]

...适配。例如我们将left、right、top、bottom的属性值都设置为100,运行后如动图4-3所示。 ![动图4-3](img/4-3.gif) (动图4-3) *Tips:拉伸适配的边距设置方式通常需要结合九宫格来实现。* #### 3.3.3 中心位置适配 中心适配常用于基于屏幕中...

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

1374. 属性设置器(ActionScript-IDE篇(AS3)-设计模式基础) [ 27%]

...适配。例如我们将left、right、top、bottom的属性值都设置为100,运行后如动图4-3所示。 ![动图4-3](img/4-3.gif) (动图4-3) *Tips:拉伸适配的边距设置方式通常需要结合九宫格来实现。* #### 3.3.3 中心位置适配 中心适配常用于基于屏幕中...

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

1375. 3D中摄像机绕物体旋转该如何实现? [ 26%]

...化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plan...

来源: Laya_社区 发布时间: 20170714

1376. 自定义3D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

... uniformMap:{ u_Number: { type: Float, default:0, alias:"数字", range:[0,100], fractionDigits: 2 } }, 如果细节较多,为了uniformMap的简洁性,可以将这些细节移到styles: uniformMap:{ u_Number: { type: Float, default:0 } }, styles: { u_Number: { caption:"数字", range:[0,100],...

来源: Laya3.0_文档 发布时间: 20251010

1377. 文本进阶使用 · LayaAir3.3 · 引擎文档 · LAYABOX [ 26%]

...s.fillText("fillText:引擎绘制的文本,适合简单的单行文本", 100, 300, " 60px simHei ", "#ff0000", "left"); } 在Text与Label中,font仅仅是指系统字体,例如该文本是Microsoft YaHei还是Arial,选择或者输入对应的字体就可以。而fillText中,font是字体...

来源: Laya3.0_文档 发布时间: 20251010

1378. 官方案例里摄像机绕物体旋转脚本的问题 [ 25%]

...化照相机 var camera = this.newScene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.rotationEuler = new Laya.Vector3(-32, -75, 0); camera.transform.position =new Laya.Vector3(-8.2, 5.3, 2.2); var modelViewer = camera.addComponent(ModelViewer); modelViewer.AroundPos = plan...

来源: Laya_社区 发布时间: 20190224

1379. socket大型项目回调 [ 25%]

... 0; private nextHeartbeatTimeout:number = 0; private gapThreshold:number = 100; private heartbeatId:any = null; private heartbeatTimeoutId:any = null; private handshakeCallback:any = null; private handshakeBuffer:any; private initCallback:Function = null; private _callbacks:any = {}; private reqId:n...

来源: Laya_社区 发布时间: 20180119

1380. 缓存工具-layadcc · LayaAir3.3 · 引擎文档 · LAYABOX [ 25%]

... now, speed) => { console.log(`downloading:${Math.floor((now / total) * 100)}`) return false;0 }, (curlret, httpret) => { if (curlret != 0 || httpret < 200 || httpret >= 300) { resolve(null); } else { resolve(localfile); } }, 10, 100000000); } ); } let zipfile = await downloadBigZip('htt...

来源: Laya3.0_文档 发布时间: 20251010