大约有 537 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0050 秒)
Laya_社区(186) Laya2.0_示例(91) Laya3.0_api(66) Laya2.0_api(60) laya_api(56) Laya_示例(41) Laya2.0_文档(30) Laya3.0_文档(7)
...e : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以像素为单位)。 Sprite downButton : Button下按钮 ScrollBar drawCallO...
来源: Laya2.0_api 发布时间: 20190513
...aniBody.getBounds(); this.aniBody.pivot(bound.width / 2, bound.height / 2); if (direction < 0) { this.aniBody.scaleX = -1; } else { this.aniBody.scaleX = 1; } } 每改变一个方向CurMern都爆涨50M这样...
来源: Laya_社区 发布时间: 20170615
...age.addChild(new MousePickingScene()); // Laya.init(Browser.width, Browser.height); // Laya.stage.scaleMode = Stage.SCALE_NOSCALE; infoText = "距离:null"; mySwitch = true; target = new BMap.Point(113.392307, 23.062487); createDom(); initMap(); createButton(); var successHandler = new Handler(thi...
来源: Laya_社区 发布时间: 20170323
...口,Sprite所有的绘图操作都通过Graphics来实现的。Sprite height : Number 表示显示对象的高度,以像素为单位。 高度默认为0,可以手动设置,或者通过getbounds获取实际宽度。设置此高度只用来做鼠标碰撞使用,改变后并不影响显示...
来源: laya_api 发布时间: 20170422
...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
...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
...同皮肤 public function LayaAirDemo() { Laya.init(Browser.width,Browser.height,WebGL);//初始化LayaAir引擎 Stat.show();//舞台左上角显示帧频信息 Laya.stage.bgColor='#EEFFCC';//设置舞台背景色 Laya.stage.alignH='center';//水平居中对齐 Laya.stage.alignV='middle';//垂直居...
来源: Laya_社区 发布时间: 20170324
...= new Laya.Texture2D(videoTexture.video.videoWidth,videoTexture.video.videoHeight); var texture:Laya.Texture = new Laya.Texture(texture2D); var image:Laya.Image = new Laya.Image(); image.texture = texture; image.width = videoTexture.video.videoWidth; image.height = videoTexture.video.videoHeight; im...
来源: Laya_社区 发布时间: 20240305
...eateElement('div')"); __JS__("div.style.width='400px'"); __JS__("div.style.height='400px'"); // 相对父级定位,并在最上方显示 __JS__("div.style.position='absolute'"); __JS__("div.style.zIndex=100"); // 获取laya的div,让饼图的div位于laya的上放 __JS__('var divLaya=document.ge...
来源: Laya_社区 发布时间: 20170109