大约有 1,054 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0061 秒)
Laya_社区(615) Laya_示例(157) Laya2.0_文档(149) Laya2.0_示例(116) laya_api(7) Laya3.0_文档(5) Laya3.0_api(3) Laya2.0_api(2)
... 绘制次数和坐标,怎么写啊, 执行回调函数时报is not a function http 请求 once 的 回调参数,如何传递和接收? MOUSE_OVER注册的响应函数,如果鼠标一直在动,多久会执行一次,一帧吗?和frameLoop一样? Uncaught Error:此函数id(167)...
来源: Laya_社区 发布时间: 20170203
...} 2、在Main.ts中写入实现 Laya.Graphics.prototype.drawRoundrect = function(x: number, y: number, width: number, height: number, round: number, fillColor: any, lineColor?: any, lineWidth?: number):void { if(this instanceof Laya.Graphics == false ){ return; } let sideMin:number ...
来源: Laya_社区 发布时间: 20210123
...rivate const AniConfPath:String = "../../res/fighter/fighter.json"; public function Animation_Altas() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.sc...
来源: Laya2.0_示例 发布时间: 20260819
...因为在实际使用的时候还是会下载 * 'unknownError' * @param {function(localfile:string):void} onEnd 更新完成的回调 */ window['updateByZip'] =function(url, onEvent, onEnd){ let cachePath = conch.getCachePath(); let localfile = cachePath+url.substr(url.lastIndexOf('/')); /** * 下...
来源: Laya_社区 发布时间: 20180108
...是用不了吗?播放的时候报错误:TypeError: tSound.play is not a function. (In 'tSound.play(startTime,loops)', 'tSound.play' is undefined)
来源: Laya_社区 发布时间: 20180328
...Unexpected token in JSON at position 23;at api readFile success callback function SyntaxError: Unexpected token in JSON at position 23 2018-07-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来...
来源: Laya_社区 发布时间: 20180703
Animation提示未定义 function FarmIndexView() { FarmIndexView.super(this); this.aniCloud = new Animation(); this.aniCloud.loadAnimation("AniCloud.ani"); Laya.stage.addChild(this.aniCloud); }报错 Uncaught ReferenceError: Animation is not defined 2017-10-26 添加评论 免费帖 --> 分享 微...
来源: Laya_社区 发布时间: 20171026
...开发者工具打开报错 导微信小程序报错window.focus is not a function 微信小游戏编译报错 Laya2.0 WebGl模式,使用 drawToCanvas 报错 ImageData is not defined? 3d项目-unity添加物理组件 layanative2 打包android平台 报错 btCollisionObject undefined 播放背景...
来源: Laya_社区 发布时间: 20180514
...gle(-50,-100,100,100); sp.on(laya.events.Event.CLICK,this,this.spHandler); function spHandler() { sp.graphics.clear(); var rc:number = Math.floor(Math.random()*0xffffff); sp.graphics.drawRect(-50,-100,100,100,"#"+rc); } 这样多包几层,点击区域就会怪怪的,绘...
来源: Laya_社区 发布时间: 20180106
... import laya.display.Stage; public class SmartScale_Align_Contral { public function SmartScale_Align_Contral() { Laya.init(100, 100); Laya.stage.scaleMode = Stage.SCALE_NOSCALE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.bgColor = "#232628"; } } }
来源: Laya2.0_示例 发布时间: 20260819