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

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

441. 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 [ 93%]

LayaAir引擎 重复使用Laya.Sprite3D.load加载同一个lh类型的资源,发现第二次加载到的资源是无效的 Laya.Sprite3D.load(path, Laya.Handler.create(this, this.loadCompleted));   public loadCompleted(sp:Laya.Sprite3D):void {     this._loaded = true;          ...

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

442. 其他引擎的Demo-Example_21 [ 93%]

...让项目开发更高效。(function() { var Graphics = Laya.Graphics; var Sprite = Laya.Sprite; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var colors = ["#5D0776", "#EC8A49", "#AF3666", "#F6C84C", "#4C779A"]; var colorCount = 0; var isDown = false; var path = []; var color = colors[0]; var...

来源: Laya_示例 发布时间: 20251209

443. 屏幕适配-缩放-No Border [ 93%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

来源: Laya2.0_示例 发布时间: 20251209

444. 屏幕适配-缩放-No Scale [ 93%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

来源: Laya2.0_示例 发布时间: 20251209

445. Laya.Sprite如何实现一个不规则的点击区域? [ 93%]

Laya.Sprite如何实现一个不规则的点击区域? 2019-09-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 AerTims 赞同来自: 使用hitArea 2019-09-15 0 0 分享 微博 QZONE 微信 为什么被折叠? 0...

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

446. 阻止点击穿透问题 [ 93%]

... } },[this.items.shaizi]);  弹层的代码: this.prizeAlertLayer = new Sprite(); this.prizeAlertLayer.zOrder = 90; this.prizeAlertLayer.size(W, H);   let bg = new Sprite(); bg.alpha = 0.8; bg.graphics.drawRect(0,0,W,H,"#000000"); this.prizeAlertLayer.addChild(bg); this.prizeAlertLayer.addChild(...

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

447. 屏幕适配-缩放-Extract Fit [ 93%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

来源: Laya2.0_示例 发布时间: 20251209

448. 屏幕适配-缩放-Show All [ 93%]

...Color = "#232628"; this.createCantralRect(); } createCantralRect() { const Sprite = Laya.Sprite; this.rect = new Sprite(); this.rect.graphics.drawRect(-100, -100, 200, 200, "gray"); Laya.stage.addChild(this.rect); this.updateRectPos(); } updateRectPos() { this.rect.x = Laya.stage.width / 2; this.rec...

来源: Laya2.0_示例 发布时间: 20251209

449. sprite旋转以后,但是原来碰撞检测rect没有旋转 [ 93%]

sprite旋转以后,但是原来碰撞检测rect没有旋转 sprite旋转以后,但是原来碰撞检测rect没有旋转 2017-09-30 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 3 个回复 ymsdandan 赞同来自: Rect...

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

450. 如何获取sprite的里面的内容对象? [ 93%]

如何获取sprite的里面的内容对象? 在sprite中绘制了两张图片,sprite触发点击事件后移出其中一张,所以要获取两张绘制的图片对象,然后做处理移出一个 2017-08-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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