大约有 667 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0065 秒)
Laya_社区(280) Laya3.0_api(93) Laya2.0_api(73) laya_api(62) Laya_示例(54) Laya2.0_示例(54) Laya2.0_文档(33) Laya3.0_文档(18)
...on login(){ login.super(this); var stageWidth = Laya.stage.width; var stageHeight = Laya.stage.height; console.log(stageWidth*0.05+":"+stageHeight); var path = [ ["moveTo",stageWidth*0.05,0], ["actTo",stageWidth*0.8,0,stageWidth*0.8,stageHeight*0.05,10], ["actTo",stageWidth*0.8,stageHeight*0.6,stage...
来源: Laya_社区 发布时间: 20170806
...vas.toTempFilePathSync(); canvas.toTempFilePath({ x: 0, y: 0, width: 1280, height: 720, destWidth: 1280, destHeight: 720, success:function(res:Object):void{ imagePath = res.tempFilePath;//这个就是截屏的图片地址,可以将图片生成到相册,也可以使用这个地址用来里显示 ...
来源: Laya_社区 发布时间: 20190515
....pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.stage.height - 50 * Browser.pixelRatio); btn.on(Event.CLICK, _this, onclick); Laya.stage.addChild(btn); Laya.stage.on(Event.RESIZE, null, function():void { btn.pos(Laya.stage.width / 2 - btn.width * Browser.pixelRatio / 2, Laya.sta...
来源: Laya_社区 发布时间: 20170209
...r mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete() { mArmature = ...
来源: Laya_社区 发布时间: 20170830
...Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡顿是非常明显的,但在web下非常流畅(native下反而效率低...
来源: Laya_社区 发布时间: 20180423
...pe.y = 100; spe.width = 512; spe.height = 512; spe.size(512, 512); Laya.stage.addChild(spe); spe.graphics.drawRect(0, 0, 515, 515, "#996633", "#333333"); spe.on(Event.MOUSE_D...
来源: Laya_社区 发布时间: 20170407
...not assignable to type '(source: any, x: number, y: number, width: number, height: num ber, offsetX?: number, offsetY?: nu...'. Types of parameters 'mipMap' and 'offsetX' are incompatible. Type 'number' is not assignable to type 'boolean'. 2017-07-21 添加评论 免费帖 --...
来源: Laya_社区 发布时间: 20170721
... this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this, this.onSWFPlayComplete,[state]); return this.swfAni...
来源: Laya_社区 发布时间: 20170505
... Laya.stage.width = 1218; Laya.stage.height = 750; if (Laya.Browser.onPC) { //设置舞台缩放模式 Laya.stage.scaleMode = Laya.Stage.SCALE_SHOWALL; ...
来源: Laya_社区 发布时间: 20181208
....x = 20; UIChatText.y = 20; UIChatText.style.width = 260; UIChatText.style.height = 560; UIChatText.style.align="left"; 我laya引擎已经更新1.7.10了 我希望第一行变成 我是第一行111,一111 (一直写满为止) 11 附件 : --> 2017-09-21 添加评论 免费帖...
来源: Laya_社区 发布时间: 20170921