大约有 2,311 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0053 秒)
Laya_社区(1514) Laya2.0_文档(259) Laya_示例(138) Laya2.0_示例(101) Laya3.0_api(80) Laya3.0_文档(75) Laya2.0_api(74) laya_api(70)
... var tSprite=new Sprite(); this.addChild(tSprite); tHTMLChar.setSprite(tSprite); } } return words; } 2018-10-22 0 0 分享 微博 QZONE 微信 chen 赞同来...
来源: Laya_社区 发布时间: 20180517
...p.graphics.drawRect(0, 0, 50, 50, "#ffffff"); sp.x=xx; sp.y=yy; Laya.stage.addChild(sp); return sp; } //添加缓动的函数 private function addTime(timeLine:TimeLine,sp:Sprite,yy:Number):void { timeLine=new TimeLine(); timeLine.to(sp, {y: yy}, 3000, Ease.linearIn); timeLine.once(Event.COMPLETE,th...
来源: Laya_社区 发布时间: 20161207
...挂到角色节点 this.iceMonsterAni = new Laya.Animation(); this.owner.addChild(this.iceMonsterAni); this.iceMonsterAni.visible = false; // 默认隐藏 // 2. 开始加载 this.loadMcClips(); } /* ------------------------------------------------- * 对外唯一接口:随机播一条 * ----------...
来源: Laya_社区 发布时间: 20251211
...自定义材质。 ```typescript //添加自定义模型 var box = scene.addChild(new Laya.MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1))); //为了更好的表现该自定义shader我们去掉模型旋转,同时给摄影机添加了移动脚本 camera.addComponent(CameraMoveScript); //创建一个...
来源: Laya2.0_文档 发布时间: 20210715
...imeout, dt=8,opttimeout=1798 03-09 21:15:03.207 23554 23663 I LayaBox : [addChild][BoundReference] download 成功log: ↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓ 03-09 21:15:16.950 23554 23663 I LayaBox : send httpRequest method:user.checkPlatformExist 03-09 21:...
来源: Laya_社区 发布时间: 20180315
...Data.getInstance().openId }); this.rank = new Laya.Sprite(); this.box_rank.addChild(this.rank); Laya.Browser.window.sharedCanvas.width = this.box_rank.width; Laya.Browser.window.sharedCanvas.height = this.box_rank.height; //alwaysChange = true不好用了 手动刷新 Laya.timer.loop(50, this, () =&...
来源: Laya_社区 发布时间: 20181001
...hics.drawTexture(texture, 0, 0, texture.width, texture.height); Laya.stage.addChild(sprite); }); 2018-11-23 添加评论 已悬赏5元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 阿噗 赞同来自: if(Browser.onMiniGame) { WXOpe...
来源: Laya_社区 发布时间: 20181123
...labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new GameM...
来源: Laya_社区 发布时间: 20170511
... var rankSprite2 = new Laya.Sprite(); rankSprite2.zOrder = 100; Laya.stage.addChild(rankSprite2); var texture = new Laya.Texture(sharedCanvas); texture.bitmap.alwaysChange = true; rankSprite2.graphics.drawTexture(texture, left*pixelRatio, top*pixelRatio, width*pixelRatio,height*pixelRatio); ...
来源: Laya_社区 发布时间: 20180426
...ake(): void { let video = new Laya.VideoNode; //添加到舞台 Laya.stage.addChild(video); video.pos(200,200); //设置位置 video.source = "resources/layaAir.mp4"; //设置视频源文件 video.play(); //开始播放 } } Copyright ©Layabox 2025 all right reserved,powered by LayaAir Engine更...
来源: Laya3.0_文档 发布时间: 20251010