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

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

1. XMLHttpRequest cannot load [ 100%]

...42 XMLHttpRequest cannot load file:///F:/Laya/Project/firstGame/bin/h5/res/atlas/comp.json. Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https, chrome-extension-resource.__proto.send @ firstGame.max.js:9742 firstGame.max.js:9137 [warn]Retry to ...

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

2. 资源加载 · LayaAir3.0文档 · LAYABOX [ 88%]

....SOUND sound 声音类型 Laya.Loader.VIDEO video 视频类型 Laya.Loader.ATLAS atlas 图集类型,加载完成后返回图集json信息(并创建图集内小图Texture) Laya.Loader.HIERARCHY HIERARCHY 层级资源,比如:场景ls文件与预制体lh文件 Laya.Loader.FONT font 位图字体...

来源: Laya3.0_文档 发布时间: 20230728

3. 通过laya设计模式制作的,要怎么给按钮绑定事件呢? [ 87%]

...uot;; this.init() } init() { // 预加载图集 Laya.loader.load("res/atlas/comp.atlas", Laya.Handler.create(this, this.onLoaded ), null, Laya.Loader.ATLAS) } onLoaded(){ Laya.stage.addChild(new TopUI()) Laya.stage.addChild(new TabUI()) this.getGold.on(Laya.Event.MOUSE_DOWN,this,function()...

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

4. 关于LayaAir IDE 编辑模式下的打包功能不能合成所有图片的问题 [ 80%]

...后得到的资源,其中IDE没有把lava.png合成到大图,而是在atlas目录下创建了一个与assets目录下我创建的文件夹同名的文件夹,把lava.png丢在了该文件下面。导致以下报错: 路径不对,我能想到解决的办法就是修改layaUI.max.all.js里这...

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

5. 实体组件系统 · LayaAir3.0文档 · LAYABOX [ 25%]

...: void { this.spr.size(512, 313); //设置Sprite大小 this.spr.loadImage("atlas/comp/image.png"); //添加纹理 } } 效果如图4-2所示: (图4-2) 4.1.2 3D节点的基础使用 首先,如动图4-3所示,将场景中已经添加好的3D节点Cube拖入到@property暴露的属性入口中...

来源: Laya3.0_文档 发布时间: 20240528