大约有 1,720 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1002) Laya3.0_api(243) Laya2.0_示例(91) Laya_示例(90) Laya2.0_文档(89) Laya2.0_api(82) laya_api(75) Laya3.0_文档(48)
...t.loadAni(this.aniUrl); this.maskBox.graphics.drawRect(0,0,this.width,this.height,'#ffffff'); this.mask = this.maskBox; this.maskBox.alpha=0; // this.show(); } private parseComplete():void { //创建模式为1,可以启用换装 this.skeleton =this.templet.buildArmature(1); this.skeleton.x = this....
来源: Laya_社区 发布时间: 20180824
...png"); gun_skin.scale(50, 50); gun_skin.pivot(gun_skin.width / 2, gun_skin.height / 2); gun = Bodies.rectangle(150, 150, 50, 50, { frictionAir: 0.5, //空气摩擦力 density: 0.68, // 密度 layaSprite: gun_skin, // 绑定一个laya的Sprite, 不能用render.sprite render: { visible: true, // 开...
来源: Laya_社区 发布时间: 20180522
...able(gl.SCISSOR_TEST); gl.scissor(0, 0, RenderState2D.width, RenderState2D.height); 2022-04-28 0 0 分享 微博 QZONE 微信 HIPPOPMANANDRAPGIRL 赞同来自: 帮助解决里面微信50软妹币 2022-04-29 0 0 分享 微博 QZONE 微信 HIPPOPMANANDRAPGIRL 赞同来自: 浏览器访问的地址...
来源: Laya_社区 发布时间: 20220427
...-25 20:00 好像不行哦:video = new Video(myVWidth, PotLayout.hf_video.height); Browser.window.mvideo = video; Browser.window.$('#mvideo').pause(); //报错 186*****590 • 2018-06-25 20:00 video = new Video(760, 480); Browser.window.mvideo = video; Browser.window.$('#mvideo').pause(); //报错 ...
来源: Laya_社区 发布时间: 20180625
... 比如以下代码: var map:BitmapData = new BitmapData(width * scale, height * scale, false); map.perlinNoise(20*scale, 20*scale, 3, 5, false, true); var texture:Texture = Texture.fromBitmapData(map, false, false, scale); 用到了BitmapData的perlinNoise接口,这个接口Laya暂不支持,...
来源: Laya_社区 发布时间: 20151208
... = (Laya.stage.width - progressBar.width ) / 2; progressBar.y = Laya.stage.height / 2; //设置九宫格边距,以防变形 progressBar.sizeGrid = "5,5,5,5"; //数据改变时回调方法 progressBar.changeHandler = new Handler(this, onChange); //加载到舞台 Laya.stage.addChild(progressBar); /...
来源: Laya2.0_文档 发布时间: 20210715
... 2.用Sprite画出来 3.sp转url; var htmlCanvas = sp.drawToCanvas(width,height,0,0) var canvas = htmlCanvas.getCanvas(); var base64 = canvas.toDataURL("image/png"); var blob = dataURLtoBlob(base64); var url = Browser.window.URL.createObjectURL(blob);dataUrltoBlob函数(网上就能找到) fun...
来源: Laya_社区 发布时间: 20181221
...aleMode; import flash.events.Event; import login.LoginView; [SWF(width=800,height=600,backgroundColor="0xffffff",frameRate=60)] public class Main extends Sprite { public function Main():void { IFlash.setSize(800, 600);//2D项目中设置场景尺寸 IFlash.setOrientationEx(1); //是否为横屏模...
来源: Laya_社区 发布时间: 20151225
... sp.x = Laya.stage.width / 2; sp.y = Laya.stage.height / 2; } 发布成单机版apk在移动端安装运行,移动端报错提示: http://www.xxx.com/LayaUISampl ... annot read property 'start' of null this.sp.emitter.start(Number.MAX_VALUE); TypeError...
来源: Laya_社区 发布时间: 20170522
... if(Laya.Browser.clientWidth>Laya.Browser.clientHeight){ console.log("横屏",this.lastClientWidth); if(Laya.stage.scaleMode != Laya.Stage.SCALE_SHOWALL){ ...
来源: Laya_社区 发布时间: 20190514