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

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

671. UI-Dialog [ 71%]

...; assets = ["../../res/ui/dialog (1).png", "../../res/ui/close.png"]; Laya.loader.load(assets, Handler.create(this, onSkinLoadComplete)); })(); function onSkinLoadComplete() { var dialog = new Dialog(); var bg = new Image(assets[0]); dialog.addChild(bg); var button = new Button(assets[1]); button.na...

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

672. 关于微信缓存资源及更新问题 [ 71%]

...新问题 1,我需要缓存Json等不能自动缓存的文件,通过downloadfile下载的资源应该如何加载使用?我看Miniloader的load里通过传入下载时的地址获取到处于缓存中,就直接用这个地址读取磁盘导致失败,结果又走了一遍不缓存的远程加...

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

673. spine直接拖到编辑里不能用吗 [ 71%]

...不能用吗 直接拖到编辑器,导出运行报错   [warn]Retry to load: fangqi.s/fangqi.png [error]Failed to load: fangqi.s/fangqi.png [Error]:fangqi.sk解析失败                                      资源如图,直接在编辑器也能显示 附件 : --> 2019-01-21 ...

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

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

...方demo出现问题 我有一个unity导出的prefab。使用Laya.Sprite3D.load可以加载使用,但是当我使用Laya.loader.create,能加载出来,但是无法正常使用,会提示laya.core.js:12752 Uncaught TypeError: node._setParent is not a function 具体代码如下:    Laya.Sp...

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

675. laya.d3.resource.TextureCube [ 71%]

...extureCubePublic Methods  MethodDefined By  TextureCube()TextureCube  load(url:String):TextureCube[static] 加载TextureCube。 TextureCubeProtected Methods  MethodDefined By  detoryResource():void[override] TextureCube  recreateResource():void[override] TextureCubeProperty Detail_needRele...

来源: laya_api 发布时间: 20170929

676. UI-Dialog [ 71%]

...tage.scaleMode = Stage.SCALE_SHOWALL; Laya.stage.bgColor = "#232628"; Laya.loader.load(assets, Handler.create(this, this.onSkinLoadComplete)); } onSkinLoadComplete() { const Dialog = Laya.Dialog, Image = Laya.Image, Button = Laya.Button; let dialog = new Dialog(); let bg = new Image(assets[0]); dial...

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

677. 连续读取多个本地json文件 [ 71%]

...取多个本地json文件 onAwake(): void { console.log("读数据"); Laya.loader.load("Json/shopLevel.json", Laya.Handler.create(this, this.shopJsonLoaded), null, Laya.Loader.JSON); Laya.loader.load("Json/menu.json", Laya.Handler.create(this, this.menuJsonLoaded), null, Laya.Loader.JSON); } //读...

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

678. 分享-js资源进度加载 [ 71%]

...gress: Progress; Socket: Socket; arr = [ { url: "images/1.jpg", type: Laya.Loader.IMAGE } , { url: "images/2.jpg", type: Laya.Loader.IMAGE } , { url: "images/3.jpg", type: Laya.Loader.IMAGE } , { url: "images/4.png", type: Laya.Loader.IMAGE } , { url: "images/5.jpg", type: Laya.Loader.IMAGE } , { ur...

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

679. LayaAir 打包iOS项目后替换开始动画 [ 71%]

...11 16:56 浏览: 839 关注: 2 人 Monica • 2017-12-11 17:05 你有设置loadingView.loading(nPercent);的值么? 建议在刚进入app的时候显示公司的logo,然后在项目进度条页面加载完成的回调中设置loadingView.loading(100);(此时logo页面就会关闭,显示到...

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

680. 为啥我克隆的对象,动画会相互影响 [ 71%]

...inAnimations;                 myAmn.templet = AnimationTemplet.load( "3d/shou/newShou.lsani");                 _shouAry[0] = myClone;                 _shouLayer.addChild(myClone);                     /////////////左手                 v...

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