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

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

741. 2.0版本可用的CameraMoveScript.ts [ 62%]

...te      */     protected _updateRotation(): void {         if (Math.abs(this.yawPitchRoll.y) < 1.50) {             Laya.Quaternion.createFromYawPitchRoll(this.yawPitchRoll.x, this.yawPitchRoll.y, this.yawPitchRoll.z, this.tempRotationZ);             this.te...

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

742. 鼠标交互-键盘交互 [ 62%]

...var newText: string = '[ '; for (var i: number = 0; i < numKeyDown; i++) { if (this.keyDownList[i]) { newText += i + " "; } } newText += ']'; this.logger.changeText(newText); } /**添加提示文本*/ private createLogger(): void { this.logger = new Text(); this.logger.size(Laya.stage.width, Laya.st...

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

743. 1.7.8新版本3d骨骼动画如何获取绑点呢 [ 61%]

...t;); 先查到节点 for(var i:int = 0;i&lt;ani._avatarNodes.length;i++) { if(AnimationNode(ani._avatarNodes[i]).name == &quot;weaponEffect&quot;) { animationNodeTemp = ani._avatarNodes[i]; break; } } 然后通过loop来设置 effectTemp.transform.worldMatrix = animationNodeTemp.transform()._getWorl...

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

744. LayaAir和原生DOM交互(TypeScript-2D进阶篇(TS)-扩展模块) [ 61%]

...的标签 var video:any = Laya.Browser.document.querySelector('#player'); if(Hls.isSupported()){ var hls:any = new Hls(); //加载m3u8源 hls.loadSource('http://content.jwplatform.com/manifests/vM7nH0Kl.m3u8'); hls.attachMedia(video); hls.on(Hls.Events.MANIFEST_PARSED,function():void{ video.play(); ...

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

745. 鼠标交互-滑动 [ 61%]

...et dist = Laya.stage.mouseX - buttonPosition; let targetX = beginPosition; if (dist > TOGGLE_DIST) { targetX = endPosition; } Tween.to(this.button, { x: targetX }, 100); } } new Interaction_Swipe();module laya { import Sprite = Laya.Sprite; import Stage = Laya.Stage; import Event = Laya.Event; impor...

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

746. 射线检测报错,outHitInfo.sprite3D=null; [ 61%]

...n , new Laya.Vector4(1,0,0,1));   //如果与物品相交,画三面边线 if(this.hit.sprite3D) { //从碰撞信息中获取碰撞处的三角面顶点 var trianglePositions:Array&lt;any&gt;= this.hit.trianglePositions; //矢量绘制三角面边线 this.phasorSprite3D.line(trianglePositions[0], ne...

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

747. Panel初始化BUG [ 61%]

...content;         var rectX = 0;         var rectY = 0;         if (this.vScrollBar) rectY = this.vScrollBar.value;         if (this.hScrollBar) rectX = this.hScrollBar.value;         content.width = width;         content.height = height;         content._style.scrollRect...

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

748. 使用createFrames创建的图集动画。如何单独修改这个缓存动画播放速度 [ 61%]

...d; this.hitRadius = hitRadius; this.camp = camp; this.heroType = heroType; if(!Role.cacheAs) { Role.cacheAs = true; //缓存飞机飞行动画 Animation.createFrames(["war/hero_fly1.png", "war/hero_fly2.png"], "hero_fly"); //缓存飞机死亡动画 Animation.createFrames(["war/hero_down1.png", "war...

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

749. 计算着色器 · LayaAir3.4 · 引擎文档 · LAYABOX [ 61%]

...力支持2.1 资源系统集成2.2 GLSL → WGSL 的完整编译链2.3 uniformMaps 驱动的资源绑定自动化3. Compute Shader 的整体开发流程3.1 编写 GLSL 计算代码3.2 声明 uniformMaps3.3 创建 ComputeShader3.4 准备 ShaderData3.5 dispatch 执行4. 资源文件结构与解析流...

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

750. [LayaAir3]关于drawToRenderTexture2D绘制后图像模糊问题补充 [ 60%]

... sprite's original relative position for drawing. * @param flipY Optional. If true, the texture will be flipped vertical. Default is false. * @param clearColor Optional. If provided, the texture will be cleared to this color before drawing. Default is null. * @returns The drawn RenderTexture2D objec...

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