大约有 520 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0052 秒)
...aya.Sprite3D.load("res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh",Laya.Handler.create(null, function(sp){ //Laya.Sprite3D.load("res/layatest.lh",Laya.Handler.create(null, function(sp){ this.box=scene.addChild(sp); this.box.transform.ro...
来源: Laya_社区 发布时间: 20190514
...e: Laya.Loader.TEXT } // 协议文件 ]; Laya.loader.load(uiResArray, Laya.Handler.create(this, onCompleted), Laya.Handler.create(this, ProgressPanel.showGameLoadingProgressPanel, null, false)); } /** * 显示一个模块面板 * 需要 资源altlas的名称和面板的类全名 * @static * @param {...
来源: Laya_社区 发布时间: 20170905
... this.loadFont(); } loadFont() { const BitmapFont = Laya.BitmapFont, Handler = Laya.Handler; Laya.loader.load([{ url: ['res/bitmapFont/test.fnt'], type: Laya.Loader.FONT }], Handler.create(this, () => { console.log('bitmapFont loaded'); ...
来源: Laya_社区 发布时间: 20190225
...//加载一个json和图集 Laya.loader.load(["res/atlas/test.atlas"],Laya.Handler.create(null,function(){ //加载完成 //使用接口将图集透传到子域 Laya.MiniAdpter.sendAtlasToOpenDataContext("res/atlas/test.atlas"); }));子域main.ts: import GameConfig from "./GameConfig"; import BigRan...
来源: Laya_社区 发布时间: 20200314
...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
...ngMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, 0); //设置材质 plane.meshRenderer.material = planeMat; //平面添...
来源: Laya2.0_文档 发布时间: 20210714
...主页面上显示啊。 教程中 Laya.loader.load("./res/atlas/ui.atlas",Handler.create(this,onLoaded));这个ui.atlas 死活没看见啊。 代码复制了,不行 啊,坑在哪里???? package{import laya.net.Loader;import laya.utils.Handler;import ui.EffectAnimationDemoUI; publi...
来源: Laya_社区 发布时间: 20190708
...2:使用drawTexture Laya.loader.load("../../../../res/apes/monkey2.png", Handler.create(this, function():void { var t:Texture = Laya.loader.getRes("../../../../res/apes/monkey2.png"); var ape:Sprite = new Sprite(); ape.graphics.drawTexture(t,0,0); Laya.stage.addChild(ape); ape.pos(200, 0); })); ...
来源: Laya_社区 发布时间: 20170804
... 代码 : Laya.loader.load([{url: "comp.json", type: Loader.ATLAS}], Handler.create(this, onLoaded)); function onLoaded(){ var aa = new Sprite(); Laya.stage.addChild(aa); var texture = new Laya.Texture(); texture.load('comp/zzw.png' ); setTimeout( function(){ ...
来源: Laya_社区 发布时间: 20171226
...ge { import laya.display.Sprite; import laya.utils.Ease; import laya.utils.Handler; import laya.utils.Tween; public class LayaAirDemo { private var sp:Sprite; private var num:int; public function LayaAirDemo() { Laya.init(550,400); sp=new Sprite(); sp.graphics.drawCircle(0,0,50,"#00FFFF"); Laya.stag...
来源: Laya_社区 发布时间: 20160913