大约有 1,492 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0080 秒)
...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
...的标签 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
...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
...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
...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
...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
... 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
...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
...间。 */ 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
...tmullRomSpline { private points: number[]; constructor(points: number[]) { if (points.length < 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