大约有 753 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0048 秒)
Laya_社区(417) Laya2.0_文档(98) Laya3.0_api(64) Laya2.0_api(59) laya_api(54) Laya_示例(28) Laya3.0_文档(18) Laya2.0_示例(15)
Laya.Loader.getRes("xxx.png")取出来的资源为什么是Texture2D,不是Texture 两张图片,一张取出来是Texture。 另一张却是Texture2D 版本 Laya 2.4.0.1600 这是一个图集动画,第一次加载显示没问题,是在第二次的时候出了问题。 播放流程:第...
来源: Laya_社区 发布时间: 20200417
...透明底。 Font descriptor:字体描述文件,选择 xml。 Textures:纹理图片格式,选择 png。  7.导出位图字体。选择菜单栏的 Options->Save bitmap font as...,导出生...
来源: Laya2.0_文档 发布时间: 20201114
... 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
... 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
..., 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
图集打包后使用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
... 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
...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
...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
...{ 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