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

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

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

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

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

742. 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

743. 鼠标交互-滑动 [ 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_示例 发布时间: 20251219

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

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

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

745. 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

746. 使用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

747. [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

748. 鼠标交互-键盘交互 [ 60%]

...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...

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

749. 3D变换 · LayaAir3.3 · 引擎文档 · LAYABOX [ 60%]

...间。 */ translate(translation: Vector3, isLocal: boolean = true): void { if (isLocal) { Matrix4x4.createFromQuaternion(this.localRotation, Transform3D._tempMatrix0); Vector3.transformCoordinate(translation, Transform3D._tempMatrix0, Transform3D._tempVector30); Vector3.add(this.localPosition, Trans...

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

750. [LayaAir3]Laya3.x graphics.drawCurves 闪烁的问题 [ 60%]

...tmullRomSpline { private points: number[]; constructor(points: number[]) { if (points.length &lt; 4 || points.length % 2 !== 0) { throw new Error("At least two points (four numbers) are required, and the total number of values must be even"); } this.points = points; } private static distance(x1: num...

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