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

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

991. laya.ui.Clip_API3.0 [ 37%]

...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

992. laya.ui.FontClip_API3.0 [ 36%]

...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

993. laya.ui.Dialog_API3.0 [ 36%]

... 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

994. laya.ui.UIGroup_API3.0 [ 36%]

...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

995. 动画节点 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

...rue 播放顺序模式 wrapmode 播放类型:默认为0是正序播放(POSITIVE),1为倒序播放(REVERSE),2为pingpong播放(PINGPONG)。 2. 通过LayaAir IDE创建Animation节点 2.1 创建Animation 如动图2-1所示,可以在层级面板中创建Animation节点,点击+或...

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

996. 压缩纹理 · LayaAir3.3 · 引擎文档 · LAYABOX [ 36%]

... 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

997. IDE1.7.19.1beta打包apk后后,播放spine动画出现图片缺失 [ 36%]

...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

998. 2D物理-碰撞事件与传感器 [ 35%]

...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

999. laya.d3.core.scene.VRScene [ 35%]

...e(htmlCanvas);//使用htmlCanvas创建Texture var sp:Sprite = new Sprite().pos(0, 200);//创建精灵并把它放倒200位置 sp.graphics.drawTexture(texture);//把截图绘制到精灵上 Laya.stage.addChild(sp);//把精灵显示到舞台 也可以获取原始图片数据,分享到网上,从而...

来源: laya_api 发布时间: 20170422

1000. 输入文本组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 35%]

...已创建完毕,此方法只执行一次 */ 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