大约有 825 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0062 秒)
Laya_社区(495) Laya2.0_文档(93) Laya3.0_api(91) Laya2.0_api(57) laya_api(53) Laya3.0_文档(25) Laya2.0_示例(7) Laya_示例(4)
....Rectangle; import laya.ui.Dialog; import laya.ui.Image; import laya.utils.Handler; import ui.TestDialogUI; import ui.TestViewUI; public class TestView extends TestViewUI { private var PATH_LEN:Number = 120.0; private var speed:Number = 15; private var _path:Sprite = new Sprite(); private var _path2...
来源: Laya_社区 发布时间: 20171129
...: 3 人 cuixueying • 2017-04-07 16:38 第6个参数不是function,是handler,用new Handler或Handler.create的方式去写!
来源: Laya_社区 发布时间: 20170406
Timer Handler被覆盖 class Timer _getHandler(caller, method) { var cid = caller ? caller.$_GID || (caller.$_GID = ILaya.Utils.getGID()) : 0; var mid = method.$_TID || (method.$_TID = (Timer._mid++) * 100000); return this._map[cid + mid]; } 当游戏玩的功能多时间长了,随着cal...
来源: Laya_社区 发布时间: 20210701
...neLoadState.eLoadNull; // 地图创建完成回调函数 private _mCompleteHandler:Handler = null; private _mTest:number = 0; constructor(){ } /** * 创建地图,并显示当前场景 * @param conf 地图的配置信息 */ public create(conf:LevelConf, handler:Handler):void{ this._mLevelConf = con...
来源: Laya_社区 发布时间: 20180529
...ya.net.LoaderManager中的load()方法和getRes()方法,以及laya.utils.Handler中的create()方法,各方法的参数图3、图4、图5、图6所示:  (图3)  (图4)  (图5)  (图6) ### 2.2 用drawTexture 加载显示图...
来源: Laya2.0_文档 发布时间: 20210715
...ackage { import laya.events.Event; import laya.ui.Image; import laya.utils.Handler; public class LayaAirDemo { private var image:Image; public function LayaAirDemo() { Laya.init(800,600); Laya.loader.load(["bg.jpg","logo.png"],Handler.create(this,onLoaded)); } private function onLoaded():void { imag...
来源: Laya_社区 发布时间: 20170628
...回调方法绘制图片并添加到舞台 Laya.loader.load(this.Res,Laya.Handler.create(this,this.graphicsImg)); } private graphicsImg():void{ this.img = new Laya.Sprite(); //获取图片资源,绘制到画布 this.img.graphics.drawTexture(Laya.loader.getRes(this.Res),150,50); //添加到舞台 L...
来源: Laya2.0_文档 发布时间: 20210715
...r AniConfPath = 'res/atlas/cloud.json'; Laya.loader.load(AniConfPath, Laya.Handler.create(this, this.createAnimation), null, Laya.loader.ATLAS); function createAnimation() { var ani = new Laya.Animation(); ani.loadAtlas(AniConfPath); ani.interval = 30; ani.index = 1; ani.play(); Laya.stage.addChild(...
来源: Laya_社区 发布时间: 20170920
.../Assets/PBR Barrel/Materials/Textures/Barrel_AlbedoTransparency.png', Laya.Handler.create(this, function(texture) { mat.albedoTexture = texture; })); //法线贴图 Laya.Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Laya.Handler.create...
来源: Laya2.0_文档 发布时间: 20210714
Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 Laya.Scene.open方法中的complete的handler在IDE中调试正常,但在微信小游戏中不返回,请问是什么原因。 2019-02-20 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20190220