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

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

41. as编译js的一个问题 [ 68%]

...lashBuilder中运行的话是会报错的 你可以先把这个类型改成String,至于ios中直接报错这个我们后续会优化 2017-10-11 0 0 分享 微博 QZONE 微信 tyevlag 赞同来自: 估计我IDE报错级别不够。。。。主要是Laya编译没报错,运行报错,又无法准...

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

42. Cannot read property 'load' of null [ 67%]

...(); } return this.s_instance; } private init() { } private skins: Array<string>; private mapImg:Laya.Image; private constructor() { } public GetMap():Laya.Image { if(this.mapImg==null) { this.mapImg=new Laya.Image(); } return this.mapImg; } public LoadMapResource() { this.skins=[ "res/img/map/...

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

43. animate 动画播放 怎么把攻击 开火 合起来播放 [ 66%]

...url * length 动画最后一帧的索引值, */ private aniUrls(aniName: string, length: number): any { var urls: any = []; for (var i: number = 1; i < length; i++) { //动画资源路径要和动画图集打包前的资源命名对应起来 urls.push("imgs/role/wp116/" + aniName + i + ".png");...

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

44. ENOENT: no such file or directory, open 'D:\layaidehello eleasewxgameLayaSample.js.map [ 65%]

..._easy_perform failed和JCFileRes::onDownloadError file error fatal error: 'string' file not found Unity3d导出模型时 报错:LayaAir3D UnityPlugin prefab can't export You should check the texture file format add shader include file err, has add:Lighting.glsl,这个问题是什么,我就一...

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

45. 无法触发浏览器文件上传框 [ 64%]

... // 程序入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); ...

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

46. swf播放有问题,遮罩动画不能用吗 [ 64%]

...ebGL; import Stat = Laya.Stat; export class Animation_SWF{ private SWFPath:string = "h5/res/Map11.swf"; private MCWidth:number = 760; private MCHeight:number = 650; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(760,650, WebGL); Laya.stage.frameRate = Stage.FRAME_SLOW; ...

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

47. 求HTTP相关的文档或者例子谢谢了 [ 64%]

... // TODO Auto-generated method stub trace("加载完成!!!") var str:String=event.target.data; var jsonObject:Object=JSON.parse(str); trace(jsonObject.status); trace(jsonObject.message) } protected function progressEventHandler(event:ProgressEvent):void { // TODO Auto-generated method stub tra...

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

48. 新手引导在ios浏览器表现异常 [ 63%]

...wTips(posX: number, posY: number, width:number,height:number,skinRes: string) {             this.tipContainer = new Laya.Image();             this.tipContainer.size(width, height);             this.tipContainer.skin = skinRes;             t...

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

49. 使用webgl之后toDataUrl返回黑色的图像 [ 62%]

...; Laya.stage.addChild(sp); } private function onClick():void { var htmlsss:String=(Laya.stage.getChildAt(0) as Sprite).drawToCanvas(100,100,0,0).getCanvas().toDataURL(); var sp2:Sprite = new Sprite(); sp2.name='drawCanvas'; sp2.x = 300; sp2.loadImage(htmlsss); Laya.stage.addChild(sp2); } } }   Laya...

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

50. 和原生Dom交互 · LayaAir3.0文档 · LAYABOX [ 61%]

...显示这个img。我们新建个项目。代码如下所示: var data: string = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' + '<foreignObject width="100%" height="100%">' + '<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:4...

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