• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 1,873 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0189 秒)

471. 计时器-延迟执行 [ 80%]

...tion() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; setup(); })(); function setup() ...

来源: Laya_示例 发布时间: 20251209

472. 如何实现聊天图文混排的聊天 气泡背景效果? [ 80%]

...ml里是这样写的 <span>右边</span>     <div style="width:422px;">         <img style= " display:inline;  float:right; " src="Face/img_duihua_qipao_green_01.png "></img>                  <div style="background:url(Face/img_duihua_qipao_gree...

来源: Laya_社区 发布时间: 20170710

473. UI-RefreshList [ 80%]

...加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoading.bottom = 10; this.refr...

来源: Laya2.0_示例 发布时间: 20251209

474. laya.d3.resource.TextureCube_API3.0 [ 80%]

...Memory height id maxMipmapLevel mipmap mipmapCount obsolute referenceCount width wrapModeU wrapModeV wrapModeW blackTexture cpuMemory gpuMemory grayTexture whiteTexture Methods _addReference _clearReference _getSource _removeReference _setCPUMemory _setCreateURL _setGPUMemory destroy event gpuCompre...

来源: Laya3.0_api 发布时间: 20231102

475. 屏幕适配-缩放-Show All [ 80%]

...d(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_SHOW_ALL { private rect: Sprite; constructor() { Laya.init(550, 400); Laya....

来源: Laya_示例 发布时间: 20251209

476. 屏幕适配-缩放-Extract Fit [ 80%]

...d(rect); updateRectPos(); } function updateRectPos() { rect.x = Laya.stage.width / 2; rect.y = Laya.stage.height / 2; } })();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; export class SmartScale_Scale_EXTRACT_FIT { private rect: Sprite; constructor() { Laya.init(550, 400); La...

来源: Laya_示例 发布时间: 20251209

477. laya.resource.RenderTexture2D_API3.0 [ 80%]

...apCount obsolute offsetX offsetY referenceCount samples sourceHeight sourceWidth width wrapModeU wrapModeV wrapModeW cpuMemory currentActive gpuMemory Methods _addReference _clearReference _removeReference _setCPUMemory _setCreateURL _setGPUMemory clear destroy end event getData getIsReady gpuCompre...

来源: Laya3.0_api 发布时间: 20231115

478. bitmapFont.loadFont()加载多个地址导致位图输出重 [ 80%]

...FontLoaded(bitmapFont: BitmapFont,value1:string):void { bitmapFont.setSpaceWidth(10); Text.registerBitmapFont(this.fontName, bitmapFont); var txt: Text = new Text(); txt.width = 250; txt.wordWrap = true; txt.text=value1; txt.font =this.fontName; txt.leading = 30; txt.pos(Laya.stage.width - txt.width...

来源: Laya_社区 发布时间: 20190705

479. 寻路系统(TypeScript-3D基础(TS)-LayaAir3D之高级应用) [ 80%]

...AStar网格 */ private createGridFromAStarMap(texture):void { var textureWidth = texture.width; var textureHeight = texture.height; //读取图片像素 var pixelsInfo = texture.getPixels(); var aStarArr = []; var index = 0; //像素值为黑色不可通行,白色部分可以通行 for (var w = 0;...

来源: Laya2.0_文档 发布时间: 20210715

480. 模拟器和真机分辨率对不上 [ 80%]

... 设备 打印出 设备分辨率 console.debug("-------loadingCallback---width="+Laya.Browser.width+",height ="+Laya.Browser.height+",pixelRatio="+Laya.Browser.pixelRatio);输出如下 -------loadingCallback---width=359,height =569,pixelRatio=1 569/359 = 1.58       // 比例的值 iPhone6分辨...

来源: Laya_社区 发布时间: 20170615