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

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

931. 列表嵌套另外一个列表 [ 88%]

...请: 与内容相关的链接 提交 1 个回复 w1114367261 赞同来自: this.ist.scrollBar.min = 1;//设置滚动条的最小值 this.ist.scrollBar.max = 1000;//设置滚动条的最大值 this.ist.scrollBar.value = 1000;//设置滚动条当前值 this.ist.scrollBar.touchScrollEnable  = false ;/...

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

932. 内存优化方式(JavaScript-2D进阶篇(JS)-性能优化) [ 88%]

...颜色 Laya.stage.bgColor = "#232628"; //帧循环 Laya.timer.frameLoop(1, this, onFrame); this.createTime = 0; function onFrame() { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i = 0; i 640 + 20 || img1.scaleX 在一些特殊...

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

933. 绘制圆形与扇形(TypeScript-LayaAir基础篇(TS)-矢量图) [ 88%]

...          Laya.init(500, 300, WebGL);             this.drawSomething();         }            private drawSomething(): void {             this.sp = new Sprite();             Laya.stage.addChild(this.sp);             /...

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

934. 物理系统之FixedConstraint(JavaScript-3D基础(JS)-LayaAir3D之物理系统) [ 88%]

...刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创...

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

935. 物理系统之FixedConstraint(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 88%]

...刚体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创...

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

936. box的runtime类里可以写this.addChild();方法吗? [ 88%]

box的runtime类里可以写this.addChild();方法吗? 如题。 2017-11-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ymsdandan 赞同来自: 这个是没有的 2017-11-13 0 0 分享 微博 QZONE 微信 ...

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

937. 报错 Warning!,this class[HBox] already exist: [ 88%]

报错 Warning!,this class[HBox] already exist:   附件 : --> 2017-11-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: 你这是重名了,所以报错 2017-11-03 0 2 分享 微博 QZ...

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

938. 深入理解LayaAir引擎架构和实现原理(一)跨平台引擎源码编译 [ 88%]

...s文件,先来看看入口函数start()[code] start() { return __awaiter(this, void 0, void 0, function* () { let json = JSON.parse(fs.readFileSync("outConfig.json")); this.BaseURL = emiter_1.emiter.BaseURL = json.from; this.outfile = json.out; this.createAS = json.createAS; this.layajsURL = json....

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

939. 按钮旋转 点击区域 [ 88%]

... pivotToCenter, 并且 setMouseDownHandler: function (context, handler) { this.on(this.EVENT.MOUSE_DOWN, context, handler); }, setMoveHandler: function (context, handler) { this.on(this.EVENT.MOUSE_MOVE, context, handler); }, setMouseUpHandler: function (context, handler) { this.on(this.EVENT.MOUSE_...

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

940. 模拟石头下落过程不明抖动 [ 88%]

...,错误信息:" + message); // }; // Game.inst.start(); setInterval( this.addball.bind( this ),500); } public addball(){ for( let i:number = 0 ; i < 6; i++){ let ball = this.getObj(); ball.x = (i%6) *150 ball.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.creat...

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