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

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

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

...n: 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); })); } /** * 创建btn */ private createBtn(skin: string): Laya.Button { let...

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

652. 3d场景下载出错 [ 52%]

3d场景下载出错 loader.create  这个接口 能否支持不创建3Dscene对象, 或者新扩展一个接口  只下载对应的3D资源. 不创建3DScene, 因为 当网络异常的时候资源会下载失败,但是底层还是会创建3D对象, 底层一定会报错  {"message":"gameThirdSc...

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

653. WebSocket的握手失败 [ 52%]

...败 龙骨动画转换失败 Cannot read property 'name' of undefined Laya.loader.create 不会反馈失败状态跟描述不符合 laya微信小游戏加载外部素材失败 急急急 问题状态 最新活动: 2019-05-09 10:10 浏览: 1322 关注: 2 人

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

654. Cannot read property 'load' of null [ 52%]

...ayaAir引擎 Cannot read property 'load' of null 查了断点,看到Laya.loader是null,为什么会出现为null的情况?  代码如下: class main{ constructor(){ MapManager.getInstance().LoadMapResource(); } } new main(); class MapManager { private static s_instance = null; public static g...

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

655. 滤镜的集中实现 [ 52%]

...; //设置舞台背景色 Laya.stage.bgColor="#fffff"; //加载资源 Laya.loader.load("res/atlas/comp.json",Handler.create(this,completeLoad),null,Loader.ATLAS); } public function completeLoad():void { //原始位图 createImg(200,50); //红色滤镜 createRedFilter(); //创建发光滤镜位图**/...

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

656. 有没有懂tiledmap地图的朋友帮忙看看问什么地图加载不出来 [ 52%]

...et; import laya.map.TiledMap; import laya.maths.Rectangle; import laya.net.Loader; import laya.utils.Handler; import view.TestView; public class LayaUISample { public function LayaUISample() { //初始化引擎 Laya.init(1500, 900); //加载引擎需要的资源 var map1:TiledMap = new TiledMap(); m...

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

657. 分享:如何用代码创建自定义Tab组件 [ 52%]

...bgColor="#EEFFCC"; //预加载button的资源,用于tab的项皮肤 Laya.loader.load("button-4.png",Handler.create(this,onLoaded)); } private function onLoaded():void { //添加tab容器 var tab:Tab=new Tab(); Laya.stage.addChild(tab); for(var i:int=0;i<6;i++)//为tab容器添加button { var bt...

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

658. 使用多个时间轴动画 demo.ani(0,true,'name')失效 [ 52%]

...lor = "#ffffff"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/ui/boos.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { // //创建一个Animation实例 // var tl = new Laya.Animation(); // //加载动画文件 // tl.loadAnimation("test.ani"); //...

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

659. 加载图片显示为黑屏(附代码),为什么? [ 52%]

...览是黑屏?PC端浏览则不会出现此现象 即使我把长图做到loader预加载后,再加载它也会黑屏,这是怎么回事? 附件 : --> 2017-02-15 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 内容相关的链接 提交 2 个回...

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

660. 动画不显示 [ 52%]

...aya.utils.Timer;     import laya.display.Sprite;     import laya.net.Loader;     import laya.ui.TextArea;     import laya.resource.Texture;     import laya.maths.Point;     import laya.utils.Tween;     import laya.d3.resource.models.PrimitiveMesh;     import laya.debug.DebugP...

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