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

大约有 1,448 项符合查询结果, 库内数据总量为 30,941 项。 (搜索耗时: 0.0048 秒)

1101. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 45%]

...k_effectUI extends EffectAnimation { //然后又改成Laya.EffectAnimation constructor(){ super(); this.ani1=null; this.effectData =ui.kick_effectUI.uiView;; } } kick_effectUI.uiView={"type":"View","props":{},"compId":2,"child":[{"type":"Sprite","props":{"y":0,"x":0,"texture":"ani/p1.png"},"compId":...

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

1102. List 组件做的手风琴Demo [ 45%]

...blic static WID:number =100;     public static HEI:number =30;     constructor(){         super()         this.size(Item.WID,Item.HEI);         var img1 =new Laya.Image("bg0.png");         var img2 =new Laya.Image("bg1.png");         this.pos(0,0);  ...

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

1103. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 45%]

...我看一下 xdkaka • 2017-12-13 17:03 没办法发图了 class Main { constructor() { Laya.init(480, 852); Laya.stage.scaleMode = "showall"; Laya.stage.alignV = 'middle'; Laya.stage.alignH = 'center'; Laya.stage.screenMode = "vertical"; Laya.stage.bgColor = "#101825"...

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

1104. 问下,3D模型导出有什么要求 [ 45%]

...7-03-19 18:00 呃呃,代码我用的这个 // 程序入口 class GameMain{ constructor() { //Laya.init(600,400); Laya3D.init(600,400); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; //创景场景 var scene:Laya.Scene = new Laya.Scene(); Laya.stage.addChild(scene); //创建摄像机 var camera:Laya.C...

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

1105. JavaScript heap out of memory,ide编译不了代码 [ 45%]

...Very long string[28528381]>,encoding=216041A1 <undefined>) 2: new constructor(aka Buffer) [buffer.js:~75] [pc=7B6A4B9C](this=7AE742C1 <a Buffer with map 3D42E605>,arg=7AE742AD <Very long string[28528381]>,encodingOrOffset=216041A1 <undefined>,length=216041A1 <undefined&...

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

1106. 计时器-间隔循环 [ 45%]

...private rotateTimeBasedText: Text; private rotateFrameRateBasedText: Text; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; Laya.stage.scaleMode = Sta...

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

1107. List翻页效果 [ 45%]

...DialogUI { private m_index: number = -1; private m_downValue: number = -1; constructor() { super(); this.list_rule.hScrollBarSkin = ""; this.list_rule.renderHandler = new Laya.Handler(this, this.updateItem); this.list_rule.scrollBar.changeHandler = new Laya.Handler(this, this.onChange) this.list_rul...

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

1108. 版本号:2.0.2 beta, 在sound文件夹下音乐播放不了,放入到res文件夹下可播放 [ 45%]

...lass Test_11_Sound {  //声明一个信息文本 private txtInfo: Text;  constructor() { this.setup(); }  private setup(): void { var gap: number = 10;  //创建一个Sprite充当音效播放按钮 var soundButton: Sprite = this.createButton("播放音效"); soundButton.x = (Laya.stage.width - s...

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

1109. 仿照laya官方demo做了一个视频播放的UI,为啥在微信里不能用? [ 45%]

... by the LayaAirIDE*/ module view { export class Guide extends ui.GuideUI { constructor() { super(); // 创建Video元素 let videoElmt: any = Laya.Browser.createElement("video"); Laya.Browser.document.body.appendChild(videoElmt); // 设置Video元素地样式和属性 videoElmt.style.zInddex = Laya....

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

1110. 2D物理-复合碰撞器 [ 44%]

...言、LayaAirIDE让项目开发更高效。class Physics_Physics_Tumbler { constructor() { this.count = 0; this.totalBox = 200; Laya.Config.isAntialias = true; Laya.Laya.init(Laya.Browser.clientWidth, Laya.Browser.clientHeight, Laya.WebGL); Laya.Stat.show(); Laya.Physics.enable({ gravity: 0 }); Laya...

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