大约有 803 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0065 秒)
... BellyChen 赞同来自: 通过脚本文件参数传进去,然后调用create方法创建 2019-09-24 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 150*****573 相关问题 两个对象new了一个相同的对象,调用第一个的...
来源: Laya_社区 发布时间: 20190918
...</script>2. 在 as 代码中加入如下函数: private static var createTextureCallBack:Function; public static function createTexture(s:Sprite,callback:Function,callbackThis:Object):void{ createTextureCallBack = callback; var htmlCanvas:HTMLCanvas = s.drawToCanvas(512,512,0,0); var realCan...
来源: Laya_社区 发布时间: 20170718
... 里面 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
...个回复 Laya_Aaron 赞同来自: Laya.loader.load("abc.ttf",Laya.Handler.create(this, this.abc)); demo里没写预加载字体的代码, 先加载字体,然后再在回调方法里 初始化场景 abc():void{ GameConfig.startScene && Laya.Scene.open(GameConfig.startS...
来源: Laya_社区 发布时间: 20191217
...ZONE 微信 xiaoman122 赞同来自: Laya.loader.load("res/1.pkm", Handler.create(null, function():void { var spr:Sprite = new Sprite(); spr.loadImage("res/1.pkm"); spr.pos(100, 100); Laya.stage.addChild(spr); }), null, Loader.IMAGE); 附件就是tp转的图片,这个是加...
来源: Laya_社区 发布时间: 20181219
...3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...3D.load("res/LayaScene_LayaMonkey/Conventional/LayaMonkey.ls",Laya.Handler.create(this,function(s){ Laya.stage.addChild(s); })); ``` (图6)
来源: Laya2.0_文档 发布时间: 20210715
...t partPath = "res/aixin_bao.part"; Laya.loader.load(partPath, Laya.Handler.create(this, this.onAssetsLoaded), null, Loader.JSON); } onAssetsLoaded(settings) { // 当load数组的时候,回调函数传入的参数不再是资源,可以通过以下方法获取资源 ...
来源: Laya_社区 发布时间: 20190704
...oader,0,ltcWeight,1.0); var processHandler=Handler.create(null,Laya3D._onProcessChange,[loader,ltcWeight,6 / 7],false); Laya3D._innerFourthLevelLoaderManager.load(urls,Handler.create(null,Laya3D._onTextureCubeImagesLoaded,[loader,urls,processHandler]),...
来源: Laya_社区 发布时间: 20180508
...Texture Laya.loader.load("../../res/apes/monkey2.png", Handler.create(this, function() { var t = Laya.loader.getRes("../../res/apes/monkey2.png"); var ape = new Sprite(); ape.graphics.drawTexture(t, 0, 0); ...
来源: Laya_社区 发布时间: 20171201