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

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

21. Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture [ 90%]

Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600   这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。   播放流程:第...

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

22. 位图字体的制作与使用(ActionScript-LayaAir基础篇(AS3)-文本) [ 90%]

...透明底。 ​ Font descriptor:字体描述文件,选择 xml。 ​ Textures:纹理图片格式,选择 png。 ​ ![图片1.png](http://ldc.layabox.com/uploadfile/image/20160518/1463538975736762.png) ​ 7.导出位图字体。选择菜单栏的 Options->Save bitmap font as...,导出生...

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

23. image.drawToCanvas方法获取的一直是空的png [ 90%]

... laya.display.Stage; import laya.resource.HTMLCanvas; import laya.resource.Texture; import laya.ui.Image; import laya.utils.Handler; import laya.webgl.WebGL; public class LayaAirDemo { private var img:Image; public function LayaAirDemo() { Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_...

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

24. 射线检测-选取物体 [ 90%]

... 6, 10, 10))); var planeMat = new Laya.StandardMaterial(); planeMat.diffuseTexture = Laya.Texture2D.load("../../res/threeDimen/texture/layabox.png"); planeMat.albedo = new Laya.Vector4(0.9, 0.9, 0.9, 1); plane.meshRender.material = planeMat; var boxCollider = plane.addComponent(Laya.BoxCollider); bo...

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

25. [LayaAir3]资源未清理干净 [ 89%]

..., PrefabImpl] loader http://localhost:18090/resources/chest_bg.png (4) [6, Texture, 7, Texture2D] loader http://localhost:18090/atlas/comp/img_bg.png (4) [6, Texture, 7, Texture2D] close --------------------------------gc 6000----------------------------------- loader http://localhost:18090/resource...

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

26. 图集打包后使用Texture不显示啊 [ 89%]

图集打包后使用Texture不显示啊 { "frames": { "sg.png": { "frame": { "x": 0, "y": 0, "w": 300, "h": 300, "idx": 0 }, "spriteSourceSize": { "x": 0, "y": 0, "w": 300, "h": 300 }, "sourceSize": { "w": 300, "h": 300 }, "rotated": false, "trimed": true }, "sg2.png": { "frame": { "x": 302, "y": ...

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

27. 二进制文件打包后,读取不到zip包内的文件 [ 89%]

...     console.log('res,', (typeof res))             Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {                 material.albedoTexture = tex;                 let item = 'res/layabox.png'...

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

28. 批量销毁释放内存(JavaScript-3D基础(JS)-LayaAir3D的内存管理) [ 89%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

29. 批量销毁释放内存(ActionScript-3D基础(AS3)-LayaAir3D的内存管理) [ 88%]

...LongShi.ls", "res/threeDimen/skyBox/skyBox2/skyBox2.lmat", "res/threeDimen/texture/earth.png", "res/threeDimen/skinModel/LayaMonkey/Assets/LayaMonkey/LayaMonkey-LayaMonkey.lm", "res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", "res/threeDimen/skinModel/BoneLinkScene/PangZiNoAni.lh", "res/threeDim...

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

30. 物理引擎-Slingshot [ 88%]

...{ visible: false } }), rockOptions = { density: 0.004, render: { sprite: { texture: '../../res/physics/img/rock.png', xOffset: 23.5, yOffset: 23.5 } } }, rock = Matter.Bodies.polygon(170, 450, 8, 20, rockOptions), anchor = { x: 170, y: 450 }, elastic = Matter.Constraint.create( { pointA: anchor, bod...

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