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

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

9021. 【简单跑酷--JS版】---Lv.2 类之间的引用以及背景滚动实现 [ 26%]

...预加载资源都加载完毕的时候执行的函数//从资源来表中获取加载好的background图片纹理 var texture = Laya.loader.getRes('res/background.png'); //创建一个bg显示对象 var bg = new laya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.d...

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

9022. 微信小游戏分包实战(TypeScript-小游戏适配文档-微信小游戏) [ 26%]

...base/subpackage/LoadSubpackageTask.html),可以通过 LoadSubpackageTask 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期...

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

9023. 微信关系链:LayaAir引擎针对微信小游戏好友关系链实现方案 [ 25%]

... 是的,排行榜的图片资源最好不要打包图集,不然很可能会获取不到资源 Charles • 2018-08-20 09:24 @渔歌:那怎么取资源呢? 渔歌 • 2018-08-20 09:46 把子域资源不打包,直接放到主域的bin目录下,子域需要一张一张的加载图片资源,(子域资...

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

9024. 基础文本 · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...图1-6所示: (动图1-6) 注:变量n还可以是从.json文件中获取的文本,开发者可以自己写一个.json文件,然后在脚本中进行加载,最后利用setVar方法赋值给变量n。 在游戏中比较常用的情况就是,如图1-7所示,当每个玩家进入游戏...

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

9025. 自定义2D Shader · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...对应的VS和FS片段标记。 7.2 顶点着色器 在VS片段中,需要获取顶点信息,并计算最终的顶点位置,代码如下所示: #defineGLSL textureVS #define SHADER_NAME Sprite2DTextureShader #include "Sprite2DVertex.glsl"; void main() { vertexInfo info; getVertexInfo(info); v...

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

9026. laya.physics.RigidBody_API3.0 [ 25%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231115

9027. 缓存工具-layadcc · LayaAir3.4 · 引擎文档 · LAYABOX [ 25%]

...如果使用固定名称的根文件,可能会由于CDN缓存导致无法获取最新的文件内容,导致热更错误。 解决方法一般是给根文件一个非cdn地址,或者给一个动态页面地址。这时候根文件通常与DCC服务器不在一起,就不能把DCC服务器的...

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

9028. laya.d3.physicscannon.CannonRigidbody3D_API3.0 [ 24%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231102

9029. laya.d3.component.volume.reflectionprobe.ReflectionProbe_API3.0 [ 24%]

... Inherited from Component.owner Defined in laya/components/Component.ts:24 获取所属Node节点。 Optional runInEditor runInEditor: boolean Inherited from Component.runInEditor Defined in laya/components/Component.ts:34 是否可以在IDE环境中运行 Optional scriptPath scriptPath: string Inhe...

来源: Laya3.0_api 发布时间: 20231115

9030. 十几秒以后动画渲染时间变长,帧率变慢,是怎么回事? [ 23%]

...效(版本2.6) 骨骼动画播放完后的回调时间 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能conso...

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