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

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

331. swf转laya,还需要加载原swf?Loader type是什么? [ 75%]

swf转laya,还需要加载原swf?Loader type是什么? 问题1: mapFlash转laya格式文件,加载时还需要加载mapFlash.swf? 问题2: {url:"../../res/swf/mapFlash.swf", type:Loader.BUFFER} swf的type是Loader.BUFFER吗? 2017-01-17 添加评论 免费帖 --> 分享 微博 QZONE ...

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

332. Loader加载问题 [ 75%]

Loader加载问题 我有两个文件夹,一个是11001,一个是11002,里面装着几张图集,图集的格式都一样,例如1.json里面的文件内是,1/*.png,可是加载动画到时候,两个不同的图集,怎么解决Resources already exist,is repeated loading:的问题? 2...

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

333. 鼠标交互-拖动 [ 75%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(ApePath, Handler.create(this, this.setup)); } setup() { this.createApe(); this.showDragRegion(); } createApe() { const Sprite = Laya.Sprite, Event = Laya.Event; this.ape = new Sprite(); this.ape.loadImage(ApePath)...

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

334. Laya.loader 跨域问题? [ 75%]

Laya.loader 跨域问题? 想通过Laya.loader.load加载一个第三方的头像图片,但是提示跨域不能加载,错误如下,请问如何处理?     Access to Image at 'http://tva2.sinaimg.cn/crop.0.0.180.180.50/***.jpg' from origin 'http://***.sina.com.cn' has been blocked by CO...

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

335. 求助。资源加载问题,按照官方demo出现问题 [ 75%]

...efab。使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下:    Laya.Sprite3D.load(url, Laya.Hander.create(this, this.o...

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

336. Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? [ 75%]

Laya.loader.getRes的声音资源如何用Laya.SoundManager播放? var soundData = null; Laya.loader.load("res/audio/TheSacredWar.ogg", Laya.Handler.create(Laya.stage, function () { console.log('音乐加载完成>>>-----------------|>'); soundData = Laya.loader.getRes("res/audio/some...

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

337. Laya.loader.clearRes 能不能直接清除场景依赖的资源 [ 75%]

Laya.loader.clearRes 能不能直接清除场景依赖的资源 Laya.Scene.load 既然可以直接加载场景所依赖的资源, Laya.loader.clearRes 能不能直接清除场景依赖的资源呢?? 2019-06-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

338. UI-TextArea [ 75%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onLoadComplete)); })(); function onLoadComplete() { var ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3d3d3d"; ta.pos(100, 15);...

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

339. UI-ColorPicker [ 75%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(skin, Handler.create(this, onColorPickerSkinLoaded)); })(); function onColorPickerSkinLoaded() { var colorPicker = new ColorPicker(); colorPicker.selectedColor = "#ff0033"; colorPicker.skin = skin; colorPicker.pos...

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

340. UI-TextArea [ 75%]

...e = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Stat.show(); Laya.loader.load(skin, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { const TextArea = Laya.TextArea; let ta = new TextArea(""); ta.skin = skin; ta.font = "Arial"; ta.fontSize = 18; ta.bold = true; ta.color = "#3...

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