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

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

31. List组件拖动浏览时item会出现重叠的现象 [ 75%]

...Child(list); // 设置数据项为对应图片的路径 var data: Array<string> = []; for (var i: number = 0; i < 2; ++i) { data.push("img_common_pinzhi0.png"); data.push("img_common_pinzhi1.png"); data.push("img_common_pinzhi2.png"); data.push("img_common_pinzhi3.png"); data.push("img_comm...

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

32. 官方示例图集路径无法加载 [ 74%]

...,就创建多少个动画关键帧  */ private createAniTemplate(name: string, len: number = 8): void {     let aniFrames: Array<string> = [];     for (let i: number = 0; i < len; i++) {         aniFrames.push("resources/UI/role/atlasAni2/139x/" + name + i + ".png");     }   ...

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

33. LayaAir能做RPG吗?不要问我能不能,因为我已经在做 - 杀意来袭 [ 73%]

...      private mDecorate:Decorate;//装饰器         private mHost: string;         private mPort: number;         private mConnected: boolean;         /** 开启*/         public static OPEN: string = "open";         /** 关闭*/         public static CLOSE: string = ...

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

34. 骨骼动画-Spine事件 [ 73%]

...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

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

35. 骨骼动画-Spine事件 [ 73%]

...rt WebGL = Laya.WebGL; export class Skeleton_SpineEvent { private mAniPath:string; private mStartX:number = 400; private mStartY:number = 500; private mFactory:Templet; private mActionIndex:number = 0; private mCurrIndex:number = 0; private mArmature:Skeleton; private mCurrSkinIndex:number = 0; priv...

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

36. 缓动-缓动函数演示 [ 69%]

...= parseInt(durationInput.text); }); } private createInputWidthLabel(label: string, prompt: string, x: number, y: number): Input { var text: Text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); var input: Input = new Input(); input.size(50, 20); input...

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

37. 缓动-缓动函数演示 [ 69%]

...= parseInt(durationInput.text); }); } private createInputWidthLabel(label: string, prompt: string, x: number, y: number): Input { var text: Text = new Text(); text.text = label; text.color = "white"; Laya.stage.addChild(text); text.pos(x, y); var input: Input = new Input(); input.size(50, 20); input...

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

38. 鼠标交互-自定义事件 [ 69%]

...= Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...

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

39. 鼠标交互-自定义事件 [ 68%]

...= Laya.WebGL; export class Interaction_CustomEvent { public static ROTATE: string = "rotate"; private sp: Sprite; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.A...

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

40. 绘制能力 · LayaAir3.3 · 引擎文档 · LAYABOX [ 66%]

...rawLine(fromX: number, fromY: number, toX: number, toY: number, lineColor: string, lineWidth: number = 1): DrawLineCmd { return this.addCmd(DrawLineCmd.create(fromX, fromY, toX, toY, lineColor, lineWidth)); } 代码示例: let sp = new Laya.Sprite(); //画直线 sp.graphics.drawLine(10, 58, 146, 5...

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