大约有 1,326 项符合查询结果, 库内数据总量为 30,910 项。 (搜索耗时: 0.0070 秒)
... 人 laya_zhangjie222 • 2018-04-18 16:18 我想做出类似与Laya.stage.addchild(xx);这个类型的调用,我的方法是init(),但是我想有个moudle obj,在.d.ts文件中:declare module obj{ init();}; 之后再Layasample中 obj.init(); 调用,我想这种怎么办? 155*****359 • 20...
来源: Laya_社区 发布时间: 20180418
... function showApe(){ this.ani.loadAnimation("TimeLine.ani"); Laya.stage.addChild(this.ani); this.ani.play(); } 运行时报 TypeError:Cannot read property '_create' of null at Animation._proto.timerLoop(file:///f:/........./bin/libs/laya.core.js:9493:14) at Animation._proto.play(fi...
来源: Laya_社区 发布时间: 20171028
...。 xiaobear250 • 2016-12-29 11:42 laya.tiledmap.js第727行: tLayer.addChild(tGridSprite); 建议在将tGridSprite加入tLayer之前使用当前的gridX和gridY给它做个规则命名,然后就可以通过Node.getChildByName来取得这个对象了。 然后在MapLayer类中加入这个方...
来源: Laya_社区 发布时间: 20161228
...a.stage.bgColor = "#999911"; ape = new Laya.Sprite(); Laya.stage.addChild(ape); var ag = ["lsd",ape,1,"str"]; ape.loadImage("../laya/assets/res/to1.png",0,0,0,0,Laya.Handler.create(this,graphicsImg,ag)); graphicsImg(ag); } function graphicsImg(args) { console.log(args); } //loadIma...
来源: Laya_社区 发布时间: 20180510
...nable = true; this.herolist.itemRender = HeroStartHeadItem; this.heropanel.addChild(this.herolist); //UI中直接添加的panel 已经实例化 this.heropanel.hScrollBarSkin = ""; let hasHeroArr:Array<any> MsgFactory.inst.heroMessasge.getTypeHeroList(HeroMessage.HERO_TYPE_ALL,2); thi...
来源: Laya_社区 发布时间: 20171227
... function(scene:Scene3D):void { Laya.stage.addChild(scene) as Scene3D; camera = scene.getChildByName("Main Camera") as Camera; Laya.stage.on(Event.MOUSE_DOWN, this, onMouseDown); ...
来源: Laya_社区 发布时间: 20190328
...回复 陈志桦 赞同来自: 代码示例如下: var a = Laya.stage.addChild(new Laya.Label("ब्राह्मी1"));a.fontSize = 50 启动laya air调试 在控制台输入上面代码,就可以发现问题 2019-09-27 0 3 分享 微博 QZONE 微信 陈志桦 赞同来自: 使用l...
来源: Laya_社区 发布时间: 20190927
...Width = options.lineWidth || 2; //中划线 var sp = new Sprite(); element.addChild(sp); //画线 sp.graphics.drawLine(0, element.height / 2, element.width, element.height / 2, lineColor, lineWidth); } 2018-05-31 1 0 分享 微博 QZONE 微信 Monica - 知识达人 赞同来自: 很赞,多谢分...
来源: Laya_社区 发布时间: 20171019
...使用,非常费,每帧刷新 sp.graphics.drawTexture(canvas); layout.addChild(sp); } /** * 清除开放域数据 */ function clearDrawOpenData(layout: Laya.Sprite) { if (layout) { layout.destroyChildren(); } } 你这报的错很可能是JSON错了 2019-03-28 0 0 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20190328
...=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附件 : ...
来源: Laya_社区 发布时间: 20170830