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

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

1401. Laya.SoundManager.playSound()问题,任务不是当前标签停止播放,当任务回到当前标签页,不能恢复播放 [ 62%]

...制,以及获取声音信息。 */ static playSound(url: string, loops?: number, soundClass?: any, startTime?: number) { return new Promise((resolve, reject) => { let soundChannel: Laya.SoundChannel = Laya.SoundManager.playSound(url, loops, Laya.Handler.create(this, () => { resolve(soundChan...

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

1402. laya.sprite精灵无缝拼接地图,会出现黑线跟白线,使用laya的2.0.1beta版本 [ 62%]

...string = ""; constructor() { super(); }  loadImageAndPos(name:string,posX:number,posY:number):void { this.name = name; this.anchorX = 0; this.anchorY = 0; this.x = posX; //这里是256*整数倍的叠加 每张图片都是256*256大小的地图块 this.y = posY; //这里是256*整数倍的叠加 ...

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

1403. laya.d3.core.particleshuriken.module.GradientColor_API3.0 [ 62%]

...adientColor.ts:104 最小渐变颜色。 Returns Gradient type get type(): number Defined in laya/d3/core/particleShuriKen/module/GradientColor.ts:69 生命周期颜色类型,0为固定颜色模式,1渐变模式,2为随机双固定颜色模式,3随机双渐变模式。 Returns number Methods clone c...

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

1404. 计时器-延迟执行 [ 61%]

...age.bgColor = "#232628"; this.setup(); } private setup(): void { var vGap: number = 100; this.button1 = this.createButton("点我3秒之后 alpha - 0.5"); this.button1.x = (Laya.stage.width - this.button1.width) / 2; this.button1.y = (Laya.stage.height - this.button1.height - vGap) / 2; Laya.stage.a...

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

1405. 2.0 Beta3版本中,runtime脚本的的问题 [ 61%]

... * 游戏初始化配置; */ export default class GameConfig{ static width:number=640; static height:number=1136; static scaleMode:string="fixedwidth"; static screenMode:string="none"; static alignV:string="top"; static alignH:string="left"; static startScene:any="mainscene.scene"; static sceneRoot:...

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

1406. UI-ProgressBar [ 61%]

...ssBar.value = 0; this.progressBar.value += 0.05; } private onChange(value: number): void { console.log("进度:" + Math.floor(value * 100) + "%"); } } } new laya.UI_ProgressBar();package { import laya.display.Stage; import laya.ui.ProgressBar; import laya.utils.Handler; import laya.webgl.WebGL; pu...

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

1407. 动画混合问题,Avatar动画混合报错. [ 61%]

...晕 }  export default class RoleBase extends Laya.Script3D{ public nGrade:number = 0; public nSpeed:number = 5;  public sprite:Laya.Sprite3D = null;  public animator:Laya.Animator = null;  public Init(){ this.sprite = this.owner as Laya.Sprite3D; this.animator = this.sprite.getComponent(Laya.Ani...

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

1408. 模拟石头下落过程不明抖动 [ 61%]

...etInterval( this.addball.bind( this ),500); } public addball(){ for( let i:number = 0 ; i < 6; i++){ let ball = this.getObj(); ball.x = (i%6) *150 ball.y = -200 Laya.Tween.to( ball,{y: 1500 } ,5000,Laya.Ease.linearOut,Laya.Handler.create(this,this.removeball,[ball])); Laya.stage.addChild( ball );...

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

1409. laya接入fairyGUI的时候资源加载方式? [ 61%]

...; } /**加载优先级,越小越优先,最小为0 */ private priority: number = 1; /** * 混合加载 * @param resKey * @param otherLoadData * @param complete * @param progress * @param priority */ public load(resKey: string, otherLoadData: any, complete?: Laya.Handler, progress?: Laya.Handler, ...

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

1410. laya.d3.core.Bounds_API3.0 [ 61%]

...s calculateBoundsintersection calculateBoundsintersection(bounds: Bounds): number Defined in laya/d3/core/Bounds.ts:217 Parameters bounds: Bounds Returns number -1为不相交 不为0的时候返回值为相交体积 clone clone(): any Defined in laya/d3/core/Bounds.ts:256 克隆。 Returns any 克...

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