大约有 1,273 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0062 秒)
Laya_社区(723) Laya2.0_文档(155) Laya3.0_api(108) Laya2.0_示例(81) Laya_示例(70) Laya2.0_api(58) laya_api(54) Laya3.0_文档(24)
.../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
...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
...位置 Geolocation.enableHighAccuracy = true; Geolocation.watchPosition(Handler.create(this, updatePosition), Handler.create(this, onError)); // 绑定convertToBaiduCoord作用域 __JS__("this.convertToBaiduCoord = this.convertToBaiduCoord.bind(this)"); } ``` 由于本例不需要使...
来源: Laya2.0_文档 发布时间: 20210715
...次方图集区别在哪? var 与 name 的详细区别是什么? Laya.Handler.create和new Laya.Handler有啥区别 TrailSprite3D的ALIGNMENT_TRANSFORM_Z模式和ALIGNMENT_VIEW模式有什么区别? view和Dialog区别 Image和Sprite在应用上的区别 dispone和destory的区别 atlas目录...
来源: Laya_社区 发布时间: 20180808
...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
...时候始终读不了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
... laya.core.js: 9032行clear的代码里面,完全没有涉及到对this._handlers这个的清理,而在对定时器调用的时候,this._handlers会不断增加,然后导致程序运行越来越慢,越来越卡! ClearAll也是一样的! 2019-01-09 添加评论 免费帖 --> 分享 ...
来源: Laya_社区 发布时间: 20190109
...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
...有没有例子? 为什么官网例子里,UI组件的事件都用new Handler,而资源加载用Handler.create() 问题状态 最新活动: 2016-12-01 16:55 浏览: 2147 关注: 2 人
来源: Laya_社区 发布时间: 20161201
...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