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

大约有 3,091 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0081 秒)

1711. 关于资源加载的问题 [ 65%]

...dArray, Handler.create(null, ()=>{ this.uiView = new SharkItOff(); Laya.stage.addChild(this.uiView); })); 先加载图集,图集加载完再new一个界面。但是界面里的图片都不显示 thekingreturn • 2018-03-27 20:42 [warn]Retry to load: games/game_13/image/shake_07.png [warn]Retry...

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

1712. Main无法正常使用,找不到它的定义 [ 65%]

...ousedown")             {                 _oldY = Laya.stage.mouseY;                 var itemBox:Box = _list.getCell(index);                 _itemHeight = itemBox.height;             }else if(type.type == "mouseout")             {     ...

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

1713. TypeError: Cannot read property '_byteLength' of null [ 65%]

....__proto.flush (file:///F:/client_svn/h5/bin/libs/laya.core.js:5569:31) at Stage.__proto.render (file:///F:/client_svn/h5/bin/libs/laya.core.js:17348:14) at Stage.__proto._loop (file:///F:/client_svn/h5/bin/libs/laya.core.js:17274:9) at loop (file:///F:/client_svn/h5/bin/libs/laya.core.js:5061:16) 2...

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

1714. Laya2.0绘制扇形遮罩,显示到部分角度时显示会有部分缺失(demo已上传) [ 65%]

... let node: Laya.Image = new Laya.Image('c1.png'); node.pos(300, 300) Laya.stage.addChild(node); var sp: Laya.Sprite = new Laya.Sprite(); node.mask = sp; sp.pos(50, 50); var sp2: Laya.Sprite = new Laya.Sprite(); sp2.pos(300, 500); Laya.stage.addChild(sp2); let r: number = 0 Laya.timer.loop(100, this,...

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

1715. 3Ddemo加载Unity导出场景报错resou._removeReference is not a function [ 65%]

...uper();          //加载3D场景 //var scene: Laya.Scene3D = Laya.stage.addChild(new Laya.Scene3D()) as Laya.Scene3D; Laya.Scene3D.load("res/LayaScene_terrain/Conventional/terrain.ls",Laya.Handler.create(this,function(scene:Laya.Scene3D){ Laya.stage.addChild(scene) as Laya.Scene3D; console....

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

1716. 使用官方文档中qrcode生成二维码的代码,打包APP后无效 [ 65%]

...eight: 100 }); var url: string = this.URL; this.qrcode.makeCode(url); Laya.stage.once("click", this, this.clickHandler); this.qrcodeSp = new Laya.Sprite(); Laya.stage.addChild(this.qrcodeSp); } private clickHandler(): void { var url: string = this.qrcode._oDrawing._elImage.src;//获取,注意这...

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

1717. js环境下使用Loader加载图片在Sprite对象的.on函数无效 [ 65%]

...展示界面    Laya.init(scronw, scronh) //设置舞台背景色 Laya.stage.bgColor = '#999999'; //设置适配模式     Laya.stage.scaleMode = "exactfit";     // 无加载失败重试     Laya.loader.retryNum = 0; //加载的数据信息 https://layaair.ldc.layabox.co ... oader var...

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

1718. Panel使用文档(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 65%]

...动条皮肤 panel.vScrollBarSkin = "comp/vscroll.png"; //将panel添加到stage上 Laya.stage.addChild(panel); //实例化Image组件 var img:Image = new Image(); //给image添加皮肤 img.skin = "comp/image.png"; //将image添加到panel组件中 panel.addChild(img); } } } ```

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

1719. 关于as版的Animation.createFrames()不能工作? [ 65%]

...rt laya.display.Animation; import laya.display.Sprite; import laya.display.Stage; import laya.utils.Handler; import laya.net.Loader; import laya.events.Event; public class LayaUISample { protected var text:Text; protected var aaa:AAA; public function LayaUISample() { Laya.init(1540, 990); Laya.Stat....

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

1720. 老师,请问一下如何在js代码中,动态的创建一个按钮(或者图片、lable)并添加到一个box中? [ 65%]

...bel.text=' I am a  Label!' box.addChild(image); box.addChild(label); Laya.stage.addChild(box); 2017-04-21 1 3 分享 微博 QZONE 微信 zhang92tong 赞同来自: 太感谢老师了! 2017-04-21 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发...

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