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

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

581. Skeleton动画销毁内存泄漏 [ 68%]

...问题,我大致复盘一下。 版本A: 1. new sk();sk.load("xx.sk",handler()); 2.销毁直接使用sk.destroy();sk=null; 这时在chorme上就能看到有内存泄漏,会多出来一个templet类型的数据,和官方大佬沟通之后产生了版本B。 版本B:1.new templet();tem...

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

582. 预加载进入游戏界面 [ 68%]

...。          */         public function load(url:*, complete:Handler = null, progress:Handler = null, type:String = null, priority:int = 1, cache:Boolean = true, group:String = null, ignoreCache:Boolean = false):LoaderManager { 2018-04-18 0 0 分享 微博 QZONE 微信 w1114367261 赞同...

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

583. tiledMap问题,getTileProperties获取地图属性不能获取到 [ 68%]

...iledMap; constructor(){ super(); Laya.loader.create(this.MAP_URL, new Laya.Handler(this, this.onComplete)) }  private onComplete(){ this.map = new Laya.TiledMap(); this.map.createMap(this.MAP_URL, new Laya.Rectangle(0,0,Laya.stage.width, Laya.stage.height), new Laya.Handler(this, this.onMap)) }  p...

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

584. DrawPie例子中无法显示遮罩区域 [ 68%]

... = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = ...

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

585. /*[COMPILER OPTIONS:ForcedCompile]*/ 和/*[COMPILER OPTIONS:Normal]*/ 的区别是什么? 该标签放在包头和类头上面区别又是什么? [ 68%]

...? 真机调试报错:LayaPlayer不支持的标签</SCRIPT> Laya.Handler.create和new Laya.Handler有啥区别 Dialog和View用destroy和Laya.stage.removeChild有什么区别? GradientDataNumber warning是什么 2.10.0版本中代码编译器模式下为什么会自动打开Visual Studio Co...

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

586. 请问:通过Laya.Geolocation来定位存在较大误差(超过1公里),该如何解决? [ 68%]

...ation.enableHighAccuracy = true; Laya.Geolocation.getCurrentPosition( Laya.Handler.create(null, cb_onGeoPositionSuccess), Laya.Handler.create(null, cb_onGeoPositionFail)); } else { alert("您的浏览器不支持使用HTML5来获取地理位置服务"); } } // 回调函数:获取GPS坐标成功后 f...

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

587. 在微信小游戏中,主域中显示开发域的list为什么显示不全? [ 68%]

.../激活资源版本控制 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(null, beginLoad), Laya.ResourceVersion.FILENAME_VERSION);  function beginLoad(){     Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(null, onLoaded)); }*/  function updateItem(cell, index) { ...

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

588. 请问特效播放的速率可以自定义吗? [ 67%]

... w1114367261 • 2018-04-11 16:27 Laya.loader.load("shadeY.part",Handler.create(this,onParticleLoaded),null,Loader.JSON); private function onParticleLoaded(settings:ParticleSetting):void { settings.minStartSize = 200; settings.minEndSize = 200; settings.maxStartSize = 200; settings.maxEndS...

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

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

... = 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

590. laya.d3.core.material.BaseMaterial_API3.0 [ 67%]

...ERDEFINE_ALPHATEST instead Methods Static load load(url: string, complete: Handler): void Defined in laya/d3/core/material/BaseMaterial.ts:32 deprecated 废弃请使用Material类 BaseMaterial has deprecated,please use Material instead. Parameters url: string complete: Handler Returns void Globals "...

来源: Laya3.0_api 发布时间: 20231102