大约有 1,499 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0074 秒)
...新,第二种是判断机型,然后在场景内做降帧处理。 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
...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
... } play() { console.log("1111111111"); if (++this.index >= this.skeleton.getAnimNum()) { this.index = 0; } this.skeleton.play(0, false, true); } } new SpineBinary; 使用官方示例的动画文件能正常显...
来源: Laya_社区 发布时间: 20211013
...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
..._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
...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
...时绘制线段(仅在按下时) 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
...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
...; 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
...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