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

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

1011. 滤镜-模糊滤镜 [ 79%]

...his.apePath, Handler.create(this, this.createApe)); } private createApe(): void { var ape: Sprite = new Sprite(); ape.loadImage(this.apePath); ape.x = (Laya.stage.width - ape.width) / 2; ape.y = (Laya.stage.height - ape.height) / 2; Laya.stage.addChild(ape); this.applayFilter(ape); } private applayF...

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

1012. 3D模型旋转问题,鼠标移动之后,根据按下移动的X坐标差值判断左右旋转,但是会越转越快,请问是什么问题? [ 79%]

...快,请问是什么问题? private mouseMove(state: Laya.RenderState):void{ // console.log(mX + "移动"); // console.log(this.lastMouseX + "按下"); let mX:number = Laya.stage.mouseX; let mY:number = Laya.stage.mouseY; let vec:Laya.Vector3 ; if(this.isDown){ if(this.lastMouseX - mX > 0) { v...

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

1013. Dragonbones龙骨动画 播放不同动作出现闪烁 混乱 [ 79%]

...不行 //加载动画 load(aniUrl: string,emoji?:string,complete?:Handler):void{ if (emoji) { this.emoji=emoji; } if (complete) { this.completeHandler = complete; } this.aniUrl = aniUrl; this.templet = new Templet(); this.templet.on(Event.COMPLETE, this, this.parseComplete); // this.templet.on(Event...

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

1014. 使用百度地图显示当前位置(TypeScript-LayaAir基础篇(TS)-硬件设备相关) [ 79%]

...数的作用域。 ##### 2.1 init函数: ```typescript private  init(): void { this.mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.ma...

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

1015. Sprite-旋转缩放 [ 79%]

...; Laya.stage.bgColor = "#232628"; this.createApe(); } private createApe(): void { this.ape = new Sprite(); this.ape.loadImage("../../res/apes/monkey2.png"); Laya.stage.addChild(this.ape); this.ape.pivot(55, 72); this.ape.x = Laya.stage.width / 2; this.ape.y = Laya.stage.height / 2; Laya.timer.frameL...

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

1016. PBRStandardMaterial材质详解(ActionScript-3D基础(AS3)-模型材质详解) [ 79%]

..._AlbedoTransparency.png', Handler.create(this, function(texture:Texture2D):void { mat.albedoTexture = texture; })); //法线贴图 Texture2D.load('res/threeDimen/scene/PBRMaterialScene/Assets/PBR Barrel/Materials/Textures/Barrel_Normal.png', Handler.create(this, function(texture:Texture2D):void { ma...

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

1017. 使用百度地图 · LayaAir3.4 · 引擎文档 · LAYABOX [ 79%]

...这里绑定了该函数的作用域。 2.1 init函数: private init(): void { this.mapDiv = Laya.Browser.createElement("div"); Laya.Browser.document.body.appendChild(this.mapDiv); // 适应窗口尺寸 this.refit(); Laya.stage.on(Laya.Event.RESIZE, this, this.refit); // 初始化地图 this.map =...

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

1018. Sprite-显示图片 [ 79%]

...all"; Laya.stage.bgColor = "#232628"; this.showApe(); } private showApe(): void { // 方法1:使用loadImage var ape: Sprite = new Sprite(); Laya.stage.addChild(ape); ape.loadImage("../../res/apes/monkey3.png"); // 方法2:使用drawTexture Laya.loader.load("../../res/apes/monkey2.png", Handler....

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

1019. laya.d3.math.CollisionUtils_API3.0 [ 79%]

...oxPoint closestPointBoxPoint(box: BoundBox, point: Vector3, out: Vector3): void Defined in laya/d3/math/CollisionUtils.ts:1219 空间中包围盒与一点的最近点 Parameters box: BoundBox 包围盒 point: Vector3 点 out: Vector3 最近点 Returns void Static closestPointPlanePoint closestPointP...

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

1020. Laya2.0 动画Animator如何监听播放完成 [ 79%]

...nds Laya.AnimatorStateScript {  animator:Laya.Animator;  onStateEnter(): void {  }  onStateExit(): void { if(this.animator) { this.animator.crossFade(AnimationDefine.IDLE,0.5,0,0); } }  onStateUpdate(): void {   } } 2018-11-20 0 0 分享 微博 QZONE 微信 haseef520s 赞同来自: 嗯嗯 谢...

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