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

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

291. layabox加载fairygui发布的二进制文件报错 [ 79%]

...:console.log("content not null"); //输出//////////////////////////////// if (content==null){ var errorCount=this._failRes[url] || 0; if (errorCount < this.retryNum){ console.warn("[warn]Retry to load:",url); this._failRes[url]=errorCount+1; Laya.systemTimer.once(this.retryDelay,this,this._addRe...

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

292. 屏幕适配-屏幕适配 [ 79%]

...e); } onBoyClick(e) { //点击后小人会放大缩小 let boy = e.target; if (boy.scaleX === 1) { boy.scale(1.2, 1.2); } else { boy.scale(1, 1); } } onTxtClick(e) { //点击后切换适配模式 e.stopPropagation(); index++; if (index >= modes.length) index = 0; Laya.stage.scaleMode = modes[index];...

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

293. 背景音乐问题 [ 79%]

...usic(url, loop, rate) {     Laya.SoundManager.playbackRate = rate;     if(soundControl){         Laya.SoundManager.playMusic(url, loop, Laya.Handler.create(this, onCompleteBgMusic, [loop, url]));     } } function onCompleteBgMusic(loop, url) {     if(loop > 0){         Laya.SoundM...

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

294. SVG渐变精灵的扩展脚本继承了多个精灵, 在safari环境下重叠了渲染 [ 79%]

...                    break;             }             if (this.style === style.DEFAULT) {                 this.color1Size = 20;                 this.color1 = DEFAULT_COLOR_1;                 this.color2Size = 40;                 this.color2 = DEFA...

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

295. Layabox web 复制一段文字到剪贴板 [ 78%]

...r _this = this;  this.AppConfirm = document.getElementById("AppConfirm"); if (this.AppConfirm == null) { this.AppConfirm = document.createElement("div"); document.body.appendChild(this.AppConfirm); this.AppConfirm.id = "AppConfirm"; }  this.modlueDiv = document.getElementById("modlue"); if (this.m...

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

296. 动画多层混合(TypeScript-3D基础(TS)-LayaAir3D之Animator动画) [ 78%]

...作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(this.motions...

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

297. 动画多层混合(JavaScript-3D基础(JS)-LayaAir3D之Animator动画) [ 78%]

...作的按钮监听事件中播放动作 switch (this.blendType) { case 0: if (this.motionCross) { //在当前动画状态和目标动画状态之间进行融合过渡播放 //第三个参数为layerIndex 层索引使用混合模式,混合了0层和1层的动画 this.animator.crossFade(this.motions...

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

298. 我想把flex项目转为laya ts项目,转换过程 mx.containers.Canvas报错 [ 78%]

...etHeightOfOneU():Number             {                 if(this.U<=0) return 0;                 return this.cab.height/this.U;             }                          private function setCurrentCabinet(ev:MouseEvent):void           ...

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

299. 2D方向光 · LayaAir3.3 · 引擎文档 · LAYABOX [ 78%]

...; } private updateLightByTime(progress: number): void { let intensity = 0; if (progress < 0.125) { intensity = 0.2; } else if (progress < 0.375) { const t = (progress - 0.125) / 0.25; intensity = 0.2 + t * 0.8; } else if (progress < 0.708) { intensity = 1.0; } else if (progress < 0.833) ...

来源: Laya3.0_文档 发布时间: 20251010

300. [LayaAirIDE3]如何TextArea屏蔽掉右键的快捷菜单 [ 78%]

...owner.on("keydown", this, (event: KeyboardEvent) => {             if (event.ctrlKey && event.key === "c") {                 event.preventDefault();             }             if (event.ctrlKey && event.key === "v") {                 event.preventDe...

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