大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0063 秒)
...不同的平台加载不同的资源,来使用压缩纹理 ```typescript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; el...
来源: Laya2.0_文档 发布时间: 20210714
...不同的平台加载不同的资源,来使用压缩纹理 ```javascript if (Laya.Browser.onAndroid) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) Laya.URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; el...
来源: Laya2.0_文档 发布时间: 20210715
...gt;'); } div.pos(30,5); div.innerHTML = txt; div.width = div.contextWidth; if(div.contextWidth > 200) div.contextWidth = 200; console.log(div.contextWidth); paopao.y = gRoomView.chatBox.height; paopao.imgSayBg.height = div.contextHeight + 26; paopao.imgSayBg.width = div.contextWidth + 60; paopao....
来源: Laya_社区 发布时间: 20170911
...= value; } Character.prototype.update = function() { this.x += this.speed; if (this.x >= Laya.stage.width + Character.WIDTH) this.x = -Character.WIDTH; } this.createAnimation(images); this.createBloodBar(); this.createNameLabel(); } Laya.class(Character, "Character", Sprite); // Main var amount = 50...
来源: Laya_示例 发布时间: 20260303
...同来自: 临时解决了下 // 修整LayaMaxUI导出问题 gulp.task("modifyUI", function () { let filePath = __dirname + "/../src/ui/LayaMaxUI.ts"; if (!fs.existsSync(filePath)) { return; } let fileContent = fs.readFileSync(filePath, "utf8"); ...
来源: Laya_社区 发布时间: 20190123
pivot 设置后 影响 元素大小??????????????? if(idx==2){ page[1].pivot(0,0); page[1].rotation=ps[1]+180; page[1].pos(_core.p1.x,_core.p1.y); ...
来源: Laya_社区 发布时间: 20161214
...人 dz5566 • 2019-03-06 23:14 laya.ui.js改成这样即可,去掉判断if (this._selectedIndex !=value) __getset(0,__proto,'selectedIndex',function(){ return this._selectedIndex; },function(value){ //if (this._selectedIndex !=value){ this._selectedIndex=value; this.changeSelectStatus(); this.eve...
来源: Laya_社区 发布时间: 20190305
... */ __proto.readUTFBytes=function(len){ (len===void 0)&& (len=-1); if (len==0)return ""; var lastBytes=this.bytesAvailable; if (len > lastBytes)throw "readUTFBytes error - Out of bounds"; len=len > 0 ? len :lastBytes; return this.rUTF(len); } 2018-08-22 添加评论 免费帖 --> 分...
来源: Laya_社区 发布时间: 20180822
...不同的平台加载不同的资源,来使用压缩纹理 ```typescript if (Browser.onAndroid) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/Android/"; else if (Laya.Browser.onIOS) URL.basePath = "res/threeDimen/scene/LayaScene_TextureGPUCompression/IOS/"; else URL.basePath...
来源: Laya2.0_文档 发布时间: 20210714
... let phoneH = 0; if((image.width*hPercentage*pixelRatio) > browserWidth) { phoneW = Math.round(browserWidth / pixelRatio); phoneH = Math.round(image.he...
来源: Laya_社区 发布时间: 20200604