大约有 3,085 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0100 秒)
Laya_社区(2355) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...el); 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
...Select); rankList.renderHandler = new Laya.Handler(this, updateItem); Laya.stage.addChild(rankList); // 设置数据项为对应图片的路径 var data = []; for (var i = 0; i < 10; ++i) { data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); data.push("res/1.jpg"); } rankList....
来源: Laya_社区 发布时间: 20180416
.../添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方...
来源: Laya_社区 发布时间: 20171109
...了您demo中的部分代码: onAwake(): void { Laya.stage.on(Laya.Event.MOUSE_DOWN, () => { Laya.loader.load("resources/916.mp4").then(() => { this.play(); }); }) }同时建议您将“项目设...
来源: Laya_社区 发布时间: 20231007
...// let mc:Laya.MovieClip = Laya.loader.getRes("res/swf/star.swf"); // Laya.stage.addChild(mc); } } } new laya.Loader_MultipleType(); 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 11 个回复 qian 赞...
来源: Laya_社区 发布时间: 20180203
...mp.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya.stage.addChild(sp); })); Laya.loader.load("res/atlas/test.atlas", Handler.create(this, function():void { var img:Texture = Laya.loader.getRes("test/test.png"); var sp:Sprite = new Sprite(); sp.graphics.drawTexture(img); Laya....
来源: Laya2.0_文档 发布时间: 20210714
...停,点击任意地方恢复游戏"; pause(); Laya.stage.once(Laya.Event.CLICK, this, this.onStageClick); } _proto.onStageClick = function(){ this.infoLabel.text = ""; resume(); } _proto.hp = function(value){ this.hp...
来源: Laya_社区 发布时间: 20170416
...截屏分享 unity到导出场景加载时抛异常,不知所措 修改stage的scale后,会发生异常情况 Text类中竟然没有pos函数的api~ 1.7.15 小游戏3d 发布后在手机预览显示异常 构建iOS工程后,真机上运行显示“网络异常,请检查您的网络或与开...
来源: Laya_社区 发布时间: 20180227
...y = 32 * 4; this.addChild(this.player); //监听 按下 弹起 事件 Laya.stage.on(laya.events.Event.MOUSE_DOWN, this, this.onMouseDown); Laya.stage.on(laya.events.Event.MOUSE_UP, this, this.onMouseUp); //创建一个帧循环处理函数 Laya.timer.frameLoop(1, this, this.onLoop); } _proto.onLoop ...
来源: Laya_社区 发布时间: 20160803
...er.document.body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Laya.Event.RESIZE, this, refit); // 初始化地图 map = new BMap.Map(mapDiv); // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom(); map....
来源: Laya2.0_文档 发布时间: 20210715