大约有 6,598 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0177 秒)
Laya_社区(5247) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(105) Laya2.0_api(67) laya_api(64)
...更改图片的大小。 而我把同样事件绑定到直接在代码中new Sprite出来的一图片时,点击一次 就可以更改。 这个点击两次的问题如何处理。 代码在附件中 左边的要点两次 右边的只需点一次 附件 : --> layaclick.rar 2017-02-17 添加评...
来源: Laya_社区 发布时间: 20170217
...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
...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
...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
...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
...也无报错-------------------------------------------- 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
...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
...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
...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
...(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