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

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

371. 请问LayaAirIDE最新版本支持命令行发布小游戏了吗? [ 83%]

...ayaAirIDE(目前是2.2)支持命令行构建发布小游戏了吗? 2019-10-23 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Yarpee 赞同来自: 有layaair2-cmd这个工具,但我npm install就没成功...

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

372. Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 [ 83%]

Laya.timer.frameLoop(1, this, this.aaa);对象移动会出现颤抖现象 this.loadHp(); Laya.timer.frameLoop(1, this, this.aaa); private bb:number = 6; private playerHB:logic.UI.role.PlayerHealthBar; private loadHp():void { this.playerHB = new logic.UI.role.PlayerHealthBar(); this.playerHB.pivotX ...

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

373. textInput的单行输入&多行输入(JavaScript-LayaAir基础篇(JS)-文本) [ 83%]

...下TextInput这个类的API。 laya.ui.textInput中所有的API参数: ![1](img/1.png) 这里我们设置文本的单行输入和多行输入,单行输入只能在一行内输入,多行可以通过回车在上一行未满的情况下在下一行输入。 ```javascript //初始化引擎,不支...

来源: Laya2.0_文档 发布时间: 20210714

374. timeline 类动作节点回调 [ 83%]

...改变或者根据某些条件变动(增减)动作节点。   感谢! 2018-07-18 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 callback 赞同来自: https://layaair.ldc.layabox.com/demo/?category=2d&group...

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

375. Native(android)下创建二维码并显示在页面上 [ 83%]

Native(android)下创建二维码并显示在页面上 Laya2.3.1,Native2.6.1亲测有效. Android创建二维码用到zxing库 ,在app的依赖项(dependencies)里添加: implementation 'com.google.zxing:core:3.3.0'   // ts脚本,点击按钮创建二维码并显示     private onBtnC...

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

376. laya.map.MapLayer [ 83%]

...d Public Properties PropertyDefined By alpha : Number透明度,值为0-1,默认值为1,表示不透明。更改alpha值会影响drawcall。Sprite autoSize : Boolean = false 指定是否自动计算宽高数据。默认值为 false 。 Sprite宽高默认为0,并且不会随着绘制内容...

来源: laya_api 发布时间: 20170929

377. 求问sprite放大后,graphics绘制的图像位置偏移 [ 83%]

... new Sprite(); let texture: Laya.Texture = Laya.loader.getRes(this.skin_img1); sprite.graphics.drawTexture(texture, 0, 0, texture.width, texture.height); sprite.size(texture.width, texture.height); let x: number = 300; let y: number = 100; let scaleRatio: number = 1.3; sprite.pos(x, y); // sprite.gr...

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

378. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 83%]

... * 背景类 * */ function Background(){ //图片的宽度 this.BG_WIDTH = 1600; //记录当前移动的值 this.moveX = 0; //定义背景1 this.bg1 = null; //定义背景2 this.bg2 = null; //草堆 this.grass = null; Background.__super.call(this); this.init(); } //Background 是一个显示对象 ...

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

379. laya.ui.Tree_API3.0 [ 83%]

...树结构数据。 xmlString = "<root><item label='box1'><abc label='child1'/><abc label='child2'/><abc label='child3'/><abc label='child4'/><abc label='child5'/></item><item label=...

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

380. 分享一下自己的屏幕适配方案 [ 82%]

...ght;//背景图的高 this.Img.x =0; this.Img.y =0; this.Img.url ="../game/1.png"; Laya.stage.addChild(this.Img); //获取图片初始x y轴坐标 this.ImgX=this.Img.x; this.ImgY =this.Img.y; this.layout(); Laya.stage.on(Laya.Event.RESIZE, this, this.layout); Laya.stage.on(Laya.Event.ADDED, this, th...

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