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

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

1901. 我给加载进来的UI界面中一个图片,添加点击更换图片的事件,需要点击两次才能更换图片 [ 66%]

...更改图片的大小。 而我把同样事件绑定到直接在代码中new Sprite出来的一图片时,点击一次 就可以更改。   这个点击两次的问题如何处理。 代码在附件中 左边的要点两次 右边的只需点一次 附件 : --> layaclick.rar 2017-02-17 添加评...

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

1902. as3分包,如果在ui编辑器IDE里导入了类runtime,在分包里就会报错。这个怎么处理。 [ 66%]

...n.View (Nxsg.max.js:62736)     at MailWinUI (Nxsg.max.js:71304)     at new MailWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous>:10904:20)     at MailLockWin.__proto.setWin (Nxsg.max.js:52913)     at new MailLockWin (eval at __proto.loadJs (Nxsg.max.js:52044), <anonymous&...

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

1903. laya2.3图集含空白裁切后,锚点旋转bug,demo重现 [ 66%]

...e = Laya.loader.getRes("test2.png");         var sp3:Laya.Sprite = new Laya.Sprite();         sp3.texture = Laya.Texture.create(tx3,0,0,315,315,134,134,582,582);          sp3.pivot(315/2,315/2);//锚点使用实际裁切后的中心反而是对的,这按理是bug吧    ...

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

1904. laya.display.css.SpriteStyle_API3.0 [ 66%]

...skewY viewport EMPTY Methods recover reset create Constructors constructor new SpriteStyle(): SpriteStyle Defined in laya/display/css/SpriteStyle.ts:38 Returns SpriteStyle Properties alpha alpha: number Defined in laya/display/css/SpriteStyle.ts:28 透明度 blendMode blendMode: string Defined in la...

来源: Laya3.0_api 发布时间: 20231115

1905. 水平滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...ScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.HScrollBar }) public hscroll: Laya.HScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { thi...

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

1906. 自己写了个label继承官方的label,出现了问题,求指导~ [ 66%]

...也无报错-------------------------------------------- var label:Label = new Label(); var textFormat:TextFormat = new TextFormat("Microsoft YaHei", 50, "#FF00FF", true, true, true); label.textFormat = textFormat; label.wordWrap = true; label.lWidth = 100; label.lHeight = 100; label.txt = "Hello"; ...

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

1907. 垂直滚动条组件 · LayaAir3.4 · 引擎文档 · LAYABOX [ 66%]

...ScrollBar: const { regClass, property } = Laya; @regClass() export class NewScript extends Laya.Script { @property({ type: Laya.VScrollBar }) public vscroll: Laya.VScrollBar; //组件被激活后执行,此时所有节点和组件均已创建完毕,此方法只执行一次 onAwake(): void { thi...

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

1908. socket通讯返回数据 [ 66%]

...tructor() { //初始化引擎 Laya.init(600, 400, Laya.WebGL); this.byte = new Laya.Byte(); //这里我们采用小端 this.byte.endian = Laya.Byte.LITTLE_ENDIAN; this.socket = new Laya.Socket(); //这里我们采用小端 this.socket.endian = Laya.Byte.LITTLE_ENDIAN; //建立连接 this.socket.conn...

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

1909. layaAir如何实现for循环加载多张图片,并且通过事件按比例缩小 [ 66%]

...ivate function showPic():void         {             apesCtn=new Sprite()             Laya.stage.addChild(apesCtn);             for (var i:int = 0; i < 4; i++ )             {                 Laya.loader.load(picAy[i],Handler.create(this, onAsse...

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

1910. 给模型动态添加脚本报错 [ 66%]

...(sp);                 goldNode.transform.localPosition = new Laya.Vector3(this.startPos.x + (4.5 - Math.random() * 9), this.startPos.y, this.startPos.z + (2.5 - Math.random() * 5));                 console.log('----------------goldnode', goldNode); ...

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