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

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

31. 用ide打包后的图片,Texture显示不出来? [ 70%]

...   代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){     var aa = new Sprite();     Laya.stage.addChild(aa);     var texture = new Laya.Texture();     texture.load('comp/zzw.png' );     setTimeout( function(){   ...

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

32. laya图片路径问题 [ 69%]

...od/f8.png", "/public/test/img/food/f9.png", ];    Laya.loader.load(urls, Handler.create(this, onAssetLoaded), Handler.create(this, onLoading, null, false), Loader.TEXT);   这个样能加载。 但是 var roleAni = new Laya.Animation();  roleAni.loadImages();  roleAni.play();  Laya.stage.addCh...

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

33. Socket能连接到服务器,客户端发请求也能收到服务端的数据,但是服务端主动推送数据,客户端就是收不到数据? [ 69%]

...ort laya.events.Event; import Scripts.Core.MsgManger; import Scripts.Core.IHandler; import Scripts.Core.TipsManager; import laya.utils.Browser; /** * ... * @author */ public class Socketmanger{ private static var _I:Socketmanger; public static function get Instance():Socketmanger { if(_I==null)_I=ne...

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

34. 加载预制体json,返回值不统一 [ 69%]

...返回Prefab; 解决方式: Laya.loader.load("prefab/hero.json", Laya.Handler.create(this, function (obj) {             console.log('hero',obj);         }), null, Laya.Loader.PREFAB);         Laya.loader.create("prefab/WeiTiao.json", Laya.Handler.create(this, ...

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

35. list方法onSelect失效 [ 68%]

...List.selectEnable = true; this.imgList.array = listArr; this.imgList.renderHandler = new Laya.Handler(this, this.onRender); this.imgList.selectHandler = new Laya.Handler(this, this.onSelect); } onSelect(index) { this.reqImage.skin = listArr[index].img.skin; if (defaultImgs[this.reqImage.skin]) { thi...

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

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

...GL; import laya.display.Sprite; import laya.ui.Panel; import laya.utils.Handler; public class LayaSample { private var rule_ct; public function LayaSample() { Laya.init(640, 1136, WebGL); Laya.stage.bgColor = "#CCBBAA"; var panel = new Panel(); Laya.stage.addChild(panel); panel.si...

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

37. 缓动画Bug,给了回调函数之后是直接过时间后执行回调函数,但是之前的缓动画不会执行 [ 68%]

... = 0; Laya.Tween.to(this.bir, { x: 200, y: 200 }, 2000, () => { }, Laya.Handler.create(this, this.change));     这里面会直接过两秒执行this.change,而前面x:0->200  y:0->200不会执行  是什么原因??????     2017-08-09 添加评论 免费帖 --> 分享 微...

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

38. 关于下拉列表的选择触发 [ 67%]

关于下拉列表的选择触发 this.small_map.selectHandler = new Laya.Handler(this, onSelect_small); this.big_map.selectHandler = new Laya.Handler(this, onSelect_big); function onSelect_small(e) { Laya.big_switch = 0 Laya.maptype = "small" this.now_map.text = "当前地图:" + this.small_map....

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

39. 【分享】圆形进度条上图片跟随进度并旋转角度 [ 67%]

...,就分享给大家。  //首先是加载资源 Laya.loader.load(atlas, Handler.create(this, this.onLoaded), Handler.create(this, this.onLoading, null, false));      /** * 加载资源进度 * @param percent 百分比 */ private onLoading(percent: number): void { this.view.box_mark.graphics.dr...

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

40. Texture2D的GPU纹理压缩的使用(TypeScript-3D基础(TS)-LayaAir3D之纹理) [ 67%]

...e_TextureGPUCompression/Conventional/"; Laya.Scene3D.load("scene.ls", Laya.Handler.create(.......)); ```

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