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

大约有 975 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0050 秒)

491. 使用高度图的时候 Cannot read property 'width' of undefined [ 65%]

...用高度图的时候 Cannot read property 'width' of undefined var terrainSprite = Laya.MeshTerrainSprite3D.createFromMeshAndHeightMap(terrain.meshFilter.sharedMesh, texture, 45.58879852294922, -45.58879852294922); //报错:Cannot read property 'width' of undefinedDemo见附件。   附件 : -->...

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

492. laya.ui.ColorPicker [ 65%]

...kagelaya.uiClasspublic class ColorPickerInheritanceColorPicker UIComponent Sprite Node EventDispatcher Object ColorPicker 组件将显示包含多个颜色样本的列表,用户可以从中选择颜色。 Public Properties Hide Inherited Public Properties Show Inherited Public Properties Property...

来源: Laya2.0_api 发布时间: 20190513

493. 关于WXOpenDataViewer [ 65%]

关于WXOpenDataViewer 坛子里的兄弟说用WXOpenDataViewer代替sprite可以解决我之前的BUG,,,可是出现了新BUG      Laya["Texture2D"]这里的判断false了。。。   谁知道咋回事?? 附件 : --> 2018-11-26 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...

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

494. 添加了MouseJoint没有效果 [ 65%]

...  let ropePartTexture = Laya.loader.getRes("test/b1.png"); let ropePart : Sprite = new Sprite(); ropePart.texture = ropePartTexture; ropePart.pos(48*vw,10*vh); ropePart.width = 4*vw; ropePart.height = 10*vh; let boxCollider = new laya.physics.BoxCollider(); boxCollider.width = ropePart.width; boxCo...

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

495. 现在有没有办法把一个display.sprite转存成图片 [ 65%]

现在有没有办法把一个display.sprite转存成图片 我需要实现一个截图功能,但是没有找到任何办法。htmlCanvas还存在bug 2017-04-16 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 7 个回复 Mo...

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

496. layaIDE中 sprite中设置mask IDE 假死 [ 65%]

layaIDE中 sprite中设置mask IDE 假死  layaide mask 使用中 大图 不在 mask范围中,ide报错,假死,必须重新打开ide 设置mask属性,然后鼠标点击周边区域   ide假死,可以选其他,但都打不开。  重新打开后,mask 错误 scene为全黑。 此...

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

497. 关于LayaBox 2.0后loadImage改了后要用什么来绘制base64 [ 65%]

...给loadImage这个方法引擎就会帮解码显示出来。 var sp: Laya.Sprite = new Laya.Sprite();sp.loadImage(data, 0, 0, 200, 200);Laya.stage.addChild(sp); 但现在2.0的loadImage 的 data 就只会被默认为url了, var sp: Laya.Sprite = new Laya.Sprite();sp.loadImage(data);Laya.stage.ad...

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

498. 希望加入视频实时渲染到 sprite3d 材质上 [ 65%]

希望加入视频实时渲染到 sprite3d 材质上 希望加入视频实时渲染到 sprite3d 材质上 希望加入alpha视频处理 AR的应用越来越广泛, 这两个是比较普遍的需求 2017-10-31 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

499. 图片加载问题 [ 64%]

图片加载问题 var s:Sprite = new Sprite; s.loadImage("res/soil.png"); Laya.stage.addChild(s); chrome报错:Access to Image at 'file:///E:/study/LayaAirStudy/bin/h5/res/soil.png' from origin 'null' has been blocked by CORS policy: Invalid response. Origin 'null' is therefore not allowed acces...

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

500. 其他引擎的Demo-Example_23 [ 64%]

...BG.jpg"); Laya.stage.frameLoop(1, this, this.animate); } animate() { const Sprite = Laya.Sprite, Point = Laya.Point; let laser; if (tick > frequency) { tick = 0; // iterate through the dudes and update the positions laser = new Sprite(); laser.loadImage("res/pixi/laser0" + ((type % 5) + 1) + ".png")...

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