大约有 485 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0055 秒)
Laya_社区(259) Laya_示例(61) Laya3.0_api(39) Laya2.0_文档(33) Laya2.0_api(28) Laya2.0_示例(25) laya_api(21) Laya3.0_文档(19)
...就正常了. function createImg(){ var img = new Laya.Sprite(); var r = Math.random(); var s = r > 0.66 ? "img/flower1.jpg" : r > 0.33 ? "img/flower2.png" : "img/flower3.jpg" img.loadImage(s); img.on(Laya.Event.CLICK, this, () => { img.y -= 10; }) img.pos(100, 300) Laya.stage.addChild(img)...
来源: Laya_社区 发布时间: 20180412
...个可能是changeCells里面计算this._cellOffset的方法里面乘数是Math.max而不是Math.min得出来的数值导致的问题(2.0.0 laya.ui.js 8451行) 附件 : --> 2019-04-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 ...
来源: Laya_社区 发布时间: 20190418
...,范围为0到0.05。 */ public function set outlineWidth(value){ value = Math.max(0.0, Math.min(0.05, value)); this._shaderValues.setNumber(MultiplePassOutlineMaterial.OUTLINEWIDTH, value); } /** * 获取轮廓亮度。 * @return 轮廓亮度,范围为0到1。 */ public function get outlineLightnes...
来源: Laya2.0_文档 发布时间: 20210715
...material.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Quaternion; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.Texture2D; import laya.d3.resource.TextureCube; import laya.d3.resource.models.BaseMesh; import laya.d3.resource.models.Mesh; ...
来源: Laya_示例 发布时间: 20260303
...整个素材是 32 * 20 拼起来的 this.y = 32 * 6 + 32 * parseInt(8 * Math.random()); if(this.bg == null){ //贴图纹理 this.bgTexture = Laya.loader.getRes("res/floor.png"); this.bg = new laya.display.Sprite(); this.bg.graphics.clear(); //将当前的坐标向上移动32 方便后面处理人...
来源: Laya_社区 发布时间: 20160728
... class TextRender getFontSizeInfo 函数,最后部分 var xoff:int = Math.max( orix - pixelBBX[0], 0); var yoff:int = Math.max( oriy - pixelBBX[1], 0); var bbxw:int = pixelBBX[2] - pixelBBX[0]; var bbxh:int = pixelBBX[3] - pixelBBX[1]+1; 原来没有+1,如果效果不行再调...
来源: Laya_社区 发布时间: 20190809
...显示啊 public onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); var num:number = Math.floor(value*100); // this.updateFont(num); this.updateFont(100); //test用 // if(num==100){ // G.I.loginManager.preload(); // } } private hbox:Laya.HBox; private updateFon...
来源: Laya_社区 发布时间: 20180615
... if (width != 640) { var ratio:Number = width / 640; width = 640; height = Math.floor(height / ratio); } if (height > 1280) height = 1280; else if (height < 960) height = 960;*/ var browerRatio:Number = width / height ; if( height != 1136 ) { // w 640 // h 1136 var ratioW:Number = height / 113...
来源: Laya_社区 发布时间: 20170828
...core.light.DirectionLight; import laya.d3.core.scene.Scene; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.math.Viewport; import laya.d3.resource.TextureCube; import laya.d3.resource.models.Mesh; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya....
来源: Laya_示例 发布时间: 20260303
... public setBGMVolume(value: number): void { const bgmVolume = Math.min(100, Math.max(0, value)) / 100; Laya.SoundManager.setMusicVolume(bgmVolume); /* if (this.bgmChannel) { this.bgmChannel.volume = Laya.SoundManager.musicVolume; } */...
来源: Laya_社区 发布时间: 20250930