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

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

2501. 为什么说没有​ playByFrame方法 [ 45%]

...还有 我只加载动画使用的资源好想不可以?还有使用Laya.Loader的方式能不能加载ani文件? 分享:Sprite 转换成3D贴图(Texture2D)的方法,如果有更好的方法,请告诉我。 有没有Unity3d的Vector3.Angle(计算两个三维向量之间的角度)...

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

2502. 如何为灯光添加阴影(ActionScript-3D基础(AS3)-LayaAir3D之灯光) [ 45%]

...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); grid.getChildAt(0).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.creat...

来源: Laya2.0_文档 发布时间: 20210715

2503. 国际化 · LayaAir3.4 · 引擎文档 · LAYABOX [ 45%]

...使用的方式为: let myI18n: Laya.Translations; myI18n = await Laya.loader.load("editorResources/i18nSettings.i18ns"); console.log(myI18n.t("a")); 在很多情况下,如果只是代码里用到的一些小量国际化的支持,并不想创建多个json文件,那么也有全代码的方法...

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

2504. [LayaAir3]Laya3.3.1中一个宽高0的box运行时宽高改变了 [ 45%]

...轴动画里创建的多个动画,怎么分别调用?如图 请问下loader如何强制加载一个文件,避免浏览器的缓存 想让一个2D的图形被鼠标点击时缩放一下,或左右摇晃一下,最后回到原大小或原位置,应该用什么缓动模式 移植了一个游...

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

2505. LayaAir2.0(LayaBox)之小游戏开放域开发 [ 45%]

...JSON.stringify(data.url)); if(mark == 4)//确认数据全部接收后 Laya.loader.load(["res/atlas/test.atlas", "test/1.png", "test/2.png", "test/3.png"],Laya.Handler.create(this,this.onComplete)); } }.bind(this)); }else { Laya.loader.load("res/atlas/test.atlas",Laya.Handler.create(this,this.onCompl...

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

2506. viewport 的用法 [ 45%]

...关于遮罩的用法,在哪块可以找到? Laya.URL.basePath与Laya.loader.load用法 const 用法 关于几种文本的区别与用法 能否恢复Animation.getGraphicBounds在1.6时的用法 关于__JS__的用法有没有相关教程或者例子链接 贝塞尔用法 Laya.Pool用法 Matrix4x...

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

2507. 动效问题,没有 ui.TestPUI,官方文档是错的,几年了至今无解答 [ 45%]

...年了至今无解答 let aniEffConfPath = './res/atlas/comp.atlas' Laya.loader.load(aniEffConfPath, Laya.Handler.create(this, this.onLoaded)) onLoaded(){ // Laya.ClassUtils.regClass('ui.TestPUI', ui.TestPUI) var efc = new ui.TestPUI(); Laya.stage.addChild(efc); } 按照官方文档,运行后报...

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

2508. 微信关系链:LayaAir引擎针对开发数据域使用图集支持介绍 [ 45%]

...图集文件不存在本地包,而是存在cdn上,这时先调用Laya.loader.load方法将文件加载完,然后通过: __JS__('wx').postMessage({url:url,data:tempData,isLoad:"filedata"}); 说明: url是图集文件的路径; tempData:是图集文件的json数据; isLoad:为filedata...

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

2509. 如何为灯光添加阴影(TypeScript-3D基础(TS)-LayaAir3D之灯光) [ 45%]

...`typescript // A plane receive shadow. var grid: Sprite3D = scene.addChild(Loader.getRes("res/threeDimen/staticModel/grid/plane.lh")); (grid.getChildAt(0)).meshRenderer.receiveShadow = true; ....... // A sphere cast/receive shadow. var sphereSprite: MeshSprite3D = this.addPBRSphere(PrimitiveMesh.cre...

来源: Laya2.0_文档 发布时间: 20210715

2510. Scene.load加载的时候无法正确的识别ResourceVersion [ 45%]

...n图集加载问题 请问下加载TFF字体要怎么加载呢? 请问下loader如何强制加载一个文件,避免浏览器的缓存 将list里的scrollBar设置mouseWheelEnable=false后过一段时间设置mouseWheelEnable=true;无法滚动 laya3D动画无法播放 unity到导出场景加载...

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