大约有 1,562 项符合查询结果, 库内数据总量为 31,671 项。 (搜索耗时: 0.0135 秒)
...model+".atlas",Handler.create(this,onLoad)); function onLoad():void { this.addChild(ani); var bounds:Rectangle = ani.getBounds(); Control.showLog(bounds.toString()); } 附件 : --> 2018-03-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...
来源: Laya_社区 发布时间: 20180307
...候%号会换到第二行? var text = new HTMLDivElement(); Laya.stage.addChild(text); text.color = "#fff"; text.style.fontSize = 24; text.innerHTML = "子弹命中率:<span style='color: #ee452c'>25</span>\/50 50%"; 用的是最新版本 2017-03-26 添加评论 免费帖 --> ...
来源: Laya_社区 发布时间: 20170326
...rite=new Sprite(); sp.graphics.drawRect(0,0,200,300,"#000fff"); Laya.stage.addChild(sp); sp.size(200,300); sp.pivot(sp.width/2,sp.height/2); sp.pos(200,200); Laya.timer.frameLoop(1,this,onLoopRotation,[sp]); } private function onLoopRotation(sp:Sprite):void { sp.rotation++; } } } 2017-09-05 0 0 分...
来源: Laya_社区 发布时间: 20170830
... txt.font = this.mFontName; txt.fontSize = 50; txt.leading = 5; Laya.stage.addChild(txt); } } new GameMain(); 资源能加载到,但运行后什么都没有看见。请问谁知道为啥? 附件 : --> assets.rar 2017-10-28 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关...
来源: Laya_社区 发布时间: 20171028
... _heroItemList[i] = item; } _heroItemList[i].init(heroInfo); panelHeroInfo.addChild(_heroItemList[i]); _heroItemList[i].x = i%3*190; _heroItemList[i].y = parseInt((i/3).toString()) * 155; } console.debug("创建的实例的数量::"+_heroItemList.length); } private function onSelectedHeroChange():vo...
来源: Laya_社区 发布时间: 20170321
...里怎么调都是单一色块呢? var box: Laya.MeshSprite3D = scene.addChild(new Laya.MeshSprite3D(new Laya.PlaneMesh(10, 10))) as Laya.MeshSprite3D; // box.transform.rotate(new Laya.Vector3(0, 45, 0), false, false); // var material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); //...
来源: Laya_社区 发布时间: 20181030
...a.display.Sprite = new laya.display.Sprite(); spr.texture = tx; Laya.stage.addChild(spr); spr.x = 300; spr.y = 100; var color:Array = ; color.push( 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 0, 255, 0, 0, 0, 1, 0); var filter:ColorFilter = new ColorFilter(color); spr.filters = [filter]; 附件 : ...
来源: Laya_社区 发布时间: 20170825
...; spe.size(512, 512); Laya.stage.addChild(spe); spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333"); spe.on(Event.MOUSE_DOWN, spe, onMouseDown); Laya.stage.on(Event.MOUSE_UP, this, onMous...
来源: Laya_社区 发布时间: 20170407
...ETE, this, function(){ var roleAni = roleTemp.buildArmature(1); Laya.stage.addChild(roleAni); }) roleTemp.loadAni('res/spine/knight/effect1.sk'); SK动画已经预加载了:Laya.loader.load(['res/spine/knight/effect1.png', 'res/spine/knight/effect1.sk'], Handler.create(this, init)); 2018-03-23 添...
来源: Laya_社区 发布时间: 20180323
... 菜鸟注意 ts 1.4 添加一盏灯光 var directionLight =scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; directionLight.ambientColor = new Laya.Vector3(0.7, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(1.0, 1.0, 0....
来源: Laya_社区 发布时间: 20161012