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

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

441. 不带格式后缀的图片无法成功加载 [ 69%]

.../ad.union.api/e285dd263aee2e8f7b302fa8d139de4c' Laya.loader.load(url, Laya.Handler.create(this, () => { let picTemp = Laya.Loader.getRes(url); console.log(picTemp.width) // undefined let nodee = new Laya.Sprite() nodee.texture = picTemp nodee.width = 500 nodee.height = 250 nodee.x = 100 nodee.y =...

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

442. 批量销毁释放内存(TypeScript-3D基础(TS)-LayaAir3D的内存管理) [ 69%]

...Laya.Scene3D.load("res/threeDimen/scene/ParticleScene/Example_01.ls", Laya.Handler.create(this, function(scene:Laya.Scene3D):void { this._scene = Laya.stage.addChildAt(scene, 0) as Laya.Scene3D; var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)) as Laya.Camera; camera.transform.translate(new ...

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

443. 使用百度地图显示当前位置(ActionScript-LayaAir基础篇(AS3)-硬件设备相关) [ 69%]

...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError));   // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` ​ 由于本例不需要使...

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

444. MeshSprite3D和Sprite3D有什么区别? [ 69%]

...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和ALIGNMENT_VIEW模式有什么区别? view和Dialog区别 Image和Sprite在应用上的区别 dispone和destory的区别 atlas目录...

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

445. 在UI编辑器里可以看到位图字体,但是进入游戏后没有显示,怎么解决 [ 69%]

...fnt与png文件同名 this.mBitmapFont.loadFont("font/test.fnt",new Laya.Handler(this,onLoaded)); function onLoaded(){ init(); } function init(){ //如果位图字体中,没放空格,最好设置一个空格宽度 this.mBitmapFont.setSpaceWidth(10); Laya.Text.registerBitmapFont(this.mFontName,this.m...

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

446. LayaNative中加载自己缓存的资源 [ 69%]

...时候始终读不了private function downloadFile(url:String,onComplete:Handler,onError:Handler=null):void{ if(window.conch) { var folder:String=window.conch.getCachePath()+"/download/"; if (!window.fs_exists(folder)) { window.fs_mkdir(folder); } var fileName:String = url.replace("http","").replace...

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

447. 提一个bug [ 69%]

... laya.core.js: 9032行clear的代码里面,完全没有涉及到对this._handlers这个的清理,而在对定时器调用的时候,this._handlers会不断增加,然后导致程序运行越来越慢,越来越卡!   ClearAll也是一样的! 2019-01-09 添加评论 免费帖 --> 分享 ...

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

448. 分享:Dragonbones/Spine的换肤操作 [ 69%]

...head3.png 放置资源目录下 获取texture Laya.loader.load('head3.png',Handler.create(this,onTextureLoaded)); } private var texture:Texture; private function onTextureLoaded():void { texture=Loader.getRes('head3.png'); }整体代码如下package { import laya.ani.bone.Skeleton; import laya.ani.b...

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

449. StaticModel_MeshSample例子运行不起来 [ 69%]

...有没有例子? 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2016-12-01 16:55 浏览: 2147 关注: 2 人

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

450. WXOpenDataViewer 微信开放数据域 是不是不能响应鼠标拖动事件呢? [ 69%]

...main.ts 里面 Laya.ResourceVersion.enable("version.json", Laya.Handler.create(this, this.onVersionLoaded), Laya.ResourceVersion.FILENAME_VERSION); 和 Laya.AtlasInfoManager.enable("fileconfig.json", Laya.Handler.create(this, this.onConfigLoaded)); 都要删掉。 内涵tv何吓...

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