大约有 1,038 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0069 秒)
Laya_社区(609) Laya2.0_文档(86) Laya3.0_api(75) Laya2.0_api(62) laya_api(57) Laya2.0_示例(53) Laya_示例(49) Laya3.0_文档(47)
...rialize onAwake onDestroy onDisable onEnable once parentRepaint pivot play pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...
来源: Laya3.0_api 发布时间: 20231115
...rialize onAwake onDestroy onDisable onEnable once parentRepaint pivot play pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...
来源: Laya3.0_api 发布时间: 20231115
... onDestroy onDisable onEnable onOpened once open parentRepaint pivot popup pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_dataSource set_height set_sc...
来源: Laya3.0_api 发布时间: 20231115
...rDeserialize onAwake onDestroy onDisable onEnable once parentRepaint pivot pos reCache removeChild removeChildAt removeChildByName removeChildren removeSelf render repaint replaceChild runCallLater scale setChildIndex setGraphics setSelfBounds set_anchorX set_anchorY set_bottom set_dataSource set_he...
来源: Laya3.0_api 发布时间: 20231115
...rue 播放顺序模式 wrapmode 播放类型:默认为0是正序播放(POSITIVE),1为倒序播放(REVERSE),2为pingpong播放(PINGPONG)。 2. 通过LayaAir IDE创建Animation节点 2.1 创建Animation 如动图2-1所示,可以在层级面板中创建Animation节点,点击+或...
来源: Laya3.0_文档 发布时间: 20251010
... onAwake(): void { let img = new Laya.Image; Laya.stage.addChild(img); img.pos(500,100); img.skin = "resources/layabox.png"; //纹理压缩的图片的路径 } onStart() { Laya.Stat.show(0, 0); //性能面板 } } 发布后,使用的图片就是压缩后的图片了。 3.2 图集纹理压缩的加...
来源: Laya3.0_文档 发布时间: 20251010
...alignV = "middle"; const spine: Laya.Skeleton = new Laya.Skeleton(); spine.pos(100, 400); spine.load('res/spine/princess1.sk', new Laya.Handler(this, () => { Laya.stage.addChild(spine); spine.play(0, true); })); index.html <html> <head> <meta charset='utf-8' /> <title>XX...
来源: Laya_社区 发布时间: 20181120
...Body); let bodyOriA = bodyA.getBody(); let bodyOriB = bodyB.getBody(); let position = bodyOriB.GetPosition(); // let center = bodyOriA.GetPosition(); let center = new box2d.b2Vec2((450 + 100) / Physics.PIXEL_RATIO, (300 + 100) / Physics.PIXEL_RATIO); const d = box2d.b2Vec2.SubVV(center, position, ne...
来源: Laya2.0_示例 发布时间: 20251209
...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...
来源: laya_api 发布时间: 20170422
...已创建完毕,此方法只执行一次 */ onAwake(): void { this.txtin.pos(Laya.stage.width >> 1, Laya.stage.height >> 1); //位置 this.txtin.size(500, 60); //大小 this.txtin.pivot(this.txtin.width/2, this.txtin.height/2); //轴心点 this.txtin.font = "宋体"; //字体 this.txti...
来源: Laya3.0_文档 发布时间: 20251010