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

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

741. 怎么引入外部的js文件 [ 72%]

...js文件,放在项目得什么地方,还有最新版的引入中没有loader='laya'了,需要添加吗 2017-02-09 0 2 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 owksmx593 相关问题 2.0一不小心删了bin目录下的某个场...

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

742. demo中的2d和3d混合 加载ktx的资源 会白色的 其他ui没有问题 [ 72%]

...00631用户 赞同来自:    //加载IDE指定的场景         Laya.loader.load([{url:"minastc.config.json",type:Laya.Loader.JSON}],new Laya.Handler(this,function(){             this.astcconfig = Laya.loader.getRes("minastc.config.json");             for(var key in this.astcconfig...

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

743. 怎么在dialog页面写close函数 [ 72%]

...的api~ Dialog关闭时如何向open他的页面传值? 请问laya.net.Loader和laya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 构造函数不能进断点 Laya.loader.create 进度回调函数执行两次 怎么停止正在运行...

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

744. load 粒子的时候永远出错 [ 72%]

...ate.part [error]Failed to load: res/rotate.part   我的代码:   Laya.loader.load("res/rotate.part", Handler.create(this, this.onAssetsLoaded),null,Laya.Loader.JSON);   我再bin/res/rotate.part是存在的 2018-02-11 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结...

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

745. 怎么将图片转换成base64格式 [ 72%]

...么将图片转换成base64格式 如题。一直转换没成功。 Laya.loader.load("hall/111.png",Handler.create(this,function():void { var img:Texture = Laya.loader.getRes("hall/111.png"); var encode:String = Base64ImageTool.getBase64Pic(img); } 2017-06-13 添加评论 免费帖 --> 分享 微博...

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

746. UI-Input [ 72%]

...es/ui/input (2).png", "res/ui/input (3).png", "res/ui/input (4).png"] Laya.loader.load(skins, Handler.create(this, this.onLoadComplete)); } onLoadComplete() { for (let i = 0, len = skins.length; i ; constructor() { // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alig...

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

747. 微信小游戏,动态加载资源很慢 [ 72%]

...nventional/NewBuilds.lh", "./LayaScene_111/Conventional/smoke.lh"];  Laya.loader.create(res3D, Laya.Handler.create(this, this.createBuild));这句子去获取资源,然后用 Laya.Loader.getRes("./Prefab/Conventional/NewBuilds.lh");方法去读取相应的文件,可是发现资源加载还是...

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

748. import 什么用,需要注意哪些 [ 72%]

... import Label = laya.ui.Label; import Handler = laya.utils.Handler; import Loader = laya.net.Loader;    UI项目的例子是这样写了!  2017-02-24 0 1 分享 微博 QZONE 微信 Laya_XS 赞同来自: 基于LayaAir引擎的类都需要加上Laya.的头标识,这是官方规定的,你按...

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

749. fillTexture使用问题 [ 72%]

... number = 1188; static height: number = 594; constructor() { super(); Laya.loader.load("res/images/map_01.png", Laya.Handler.create(this, this.bgLoaded)); } bgLoaded(): void { let t: Laya.Texture = Laya.loader.getRes("res/images/map_01.png"); this.width = 1000; this.height = 500; this.graphics.fillT...

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

750. 关于清除缓存资源接口疑问? [ 72%]

...nica - 知识达人 赞同来自: 你直接调这个清理就行啦!Laya.loader.clearResByGroup() 不需要你自己再去封装。你可以去看下LoaderManager的API   2017-10-19 0 0 分享 微博 QZONE 微信 lvfy 赞同来自: 这个clearResByGroup是在资源加载的时候根据主动分...

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