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

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

1431. [LayaAir2]华为mate60系列手机在微信浏览器打开Laya2.x版本游戏会闪屏 [ 40%]

...新,第二种是判断机型,然后在场景内做降帧处理。   if (Laya.Browser.userAgent.indexOf("HUAWEIALT-AL10") > -1 || Laya.Browser.userAgent. indexOf("HUAWEIALN-AL10") > -1) {              Laya.stage.frameRate = Laya.Stage.FRAME_SLOW;         } else {           ...

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

1432. 内存优化方式(TypeScript-2D进阶篇(TS)-性能优化) [ 40%]

...onFrame); } onFrame(): void { //如果创建对象时间为100帧间隔后 if (this.createTime >= 100) { //每200帧间隔创建30个雪花 for (var i: number = 0; i 640+20||img1.scaleX 在一些特殊情况我们需要注意`Laya.Hanlder.create()`的使用方式,我们仔细看图3中的`Laya.Han...

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

1433. [0]Spine3.8.75报错:Error: Unsupported skeleton data, please export with a newer version of Spine. [ 40%]

...     }     play() {         console.log("1111111111");         if (++this.index >= this.skeleton.getAnimNum()) {             this.index = 0;         }         this.skeleton.play(0, false, true);     } } new SpineBinary;   使用官方示例的动画文件能正常显...

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

1434. unity 新建场景,预览报错。 [ 40%]

...yed but you are still trying to access it. Your script should either check if it is null or you should not destroy the object. n.a (UnityEngine.SkinnedMeshRenderer A_0, System.String A_1, System.Boolean A_2) (at <f23f19a62c944610ba98639869d48a79>:0) n.b () (at <f23f19a62c944610ba98639869d48...

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

1435. 复选框组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

..._OFFSET; // 给左边的三个CheckBox添加事件使其能够切换标签 if (i == 0) { cb.y += 20; cb.on("change", this, this.updateLabel, [cb]); this.updateLabel(cb); } } } } private createCheckBox(skin: string): Laya.CheckBox { let cb: Laya.CheckBox = new Laya.CheckBox(skin); this.owner.addChild...

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

1436. laya.resource.NativeContext_API3.0 [ 40%]

...tate _scale _transform addRenderObject3D add_String add_i add_i_String add_if add_iff add_iffff add_ifffff add_iffffff add_iffffffif add_ifffffiiiif add_ifffiiiif add_iffif add_iffif_ab add_iffiiiifi add_iffiiiifi_ab add_ii add_iif_ab add_iiffff add_iiffffffffffff add_iiffffffffiffffffffff add_iiffi...

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

1437. 2D线渲染器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 40%]

...时绘制线段(仅在按下时) onMouseMove(evt: Laya.Event): void { if (!this.isDrawing || this.lastMousePos.length === 0) return; const x = evt.stageX - this.owner.x; const y = evt.stageY - this.owner.y; // 添加线段 this.line2DRender.addPoint(this.lastMousePos[0], this.lastMousePos[1], x,...

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

1438. 内存优化方式(ActionScript-2D进阶篇(AS3)-性能优化) [ 39%]

...ate function onFrame():void { //如果创建对象时间为100帧间隔后 if(createTime>=100) { //每200帧间隔创建30个雪花 for(var i:int=0;i640+20||img1.scaleX(图2-1) 在一些特殊情况我们需要注意`Hanlder.create()`的使用方式,我们仔细看图2-1中的`Hanlder.create()...

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

1439. 没有人尝试使用3d物理引擎么 [ 39%]

...; directionLight.specularColor=new Vector3(0.6, 0.6, 0.6); directionLight.diffuseColor=new Vector3(1.6, 1.6, 1.6); directionLight.direction=new Vector3(1, -1, 0); //添加自定义模型 box=scene.addChild(new MeshSprite3D(new BoxMesh(1, 1, 1))) as MeshSprite3D; box.transform.rotate(new Vector3(0, 0...

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

1440. 位图切片组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 39%]

...Child(this.controller); } private onClipSwitchState(e: any = null): void { if (this.counter.isPlaying) { this.counter.stop(); this.currFrame = this.counter.index; this.controller.label = "播放"; } else { this.counter.play(); this.counter.index = this.currFrame; this.controller.label = "暂停"; } ...

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