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

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

191. 材质-BlinnPhong-法线贴图 [ 73%]

...ctor3(0, -0.8, -1); directionLight.color = new Laya.Vector3(1, 1, 1); Laya.loader.create("../../res/threeDimen/staticModel/lizardCal/lizardCaclute.lh", Laya.Handler.create(this, onComplete)); function onComplete() { var monster1 = this.scene.addChild(Laya.Sprite3D.load("../../res/threeDimen/staticMo...

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

192. 鼠标交互-拖动 [ 73%]

...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_示例 发布时间: 20251130

193. [LayaAir3]自定义字体在移动浏览器不起作用 [ 73%]

...在移动浏览器就显示不了。我在项目启动之初使用了Laya.loader.load预加载字体,PC浏览器日志显示字体被加载了,移动浏览器有报错。     Laya.loader.load({ url: respath.font_SemiBold, type: Laya.Loader.TTF }, Laya.Handler.create(this, (obj: object) => {...

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

194. 请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 [ 73%]

请问laya.net.Loaderlaya.net.LoaderManager哪些函数支持网络资源加载,加载什么类型?哪些只支持本地资源加载 如题,API上并没有明确标出。看这两个Loader所在的包名net,好像是都支持网络资源的加载,但atlas和png放在网络服务器同...

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

195. 同时加载多个.js文件 [ 73%]

同时加载多个.js文件 Laya.loader.load("js/daTing.js", Handler.create(this, onAssetLoadedDT), null, Loader.TEXT); 同时加载多个么? 2017-10-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Monica - ...

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

196. 有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 [ 73%]

有没有Loader预加载 相关的注意事项或者文档 在手机上问题有点多 在电脑上Loader预加载方法都很正常  但是一旦打包成APK安装到手机上 有时会发生异常 Laya.loader.load(skins, Laya.Handler.create(this, fGameLoad), Laya.Handler.create(this, onLoading, ...

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

197. TimeLineUI不存在的问题 [ 73%]

...gba(0,0,0,0.1)"; //加载图集成功后,执行onLoaded回调方法 Laya.loader.load("res/atlas/apes.atlas", Laya.Handler.create(this, onLoaded)); function onLoaded() { //创建一个UI实例 var plan = new ui.TimeLineUI(); //添加到舞台 Laya.stage.addChild(plan); //播放UI场景中的动画 ...

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

198. UI-RadioGroup [ 73%]

...1).png", "res/ui/radioButton (2).png", "res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, this.initRadioGroups)); } initRadioGroups() { for (let i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage.ALIGN_MI...

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

199. UI-RadioGroup [ 73%]

.../../res/ui/radioButton (2).png", "../../res/ui/radioButton (3).png"]; Laya.loader.load(skins, Handler.create(this, initRadioGroups)); })(); function initRadioGroups() { for (var i = 0; i ; constructor(){ // 不支持WebGL时自动切换至Canvas Laya.init(800, 600, WebGL); Laya.stage.alignV = Stage....

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

200. load 跨域请求 [ 73%]

load 跨域请求 Laya.loader.load(resUrl+'bin/res/atlas/dice.json', Laya.Handler .create(this, this.init), null, Laya.Loader.ATLAS); 这个json提示跨域了,怎么解决好 2017-07-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的...

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