大约有 9,044 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0122 秒)
Laya_社区(8096) Laya3.0_api(304) Laya2.0_api(209) Laya2.0_文档(174) laya_api(166) Laya3.0_文档(76) Laya_示例(11) Laya2.0_示例(8)
...预加载资源都加载完毕的时候执行的函数//从资源来表中获取加载好的background图片纹理 var texture = Laya.loader.getRes('res/background.png'); //创建一个bg显示对象 var bg = new laya.display.Sprite(); //将上面的texture纹理绘制到bg图像里面 bg.graphics.d...
来源: Laya_社区 发布时间: 20160722
...base/subpackage/LoadSubpackageTask.html),可以通过 LoadSubpackageTask 获取当前下载进度。示例代码如下: ```javascript loadTask.onProgressUpdate(res => { console.log('下载进度', res.progress) console.log('已经下载的数据长度', res.totalBytesWritten) console.log('预期...
来源: Laya2.0_文档 发布时间: 20210715
... 是的,排行榜的图片资源最好不要打包图集,不然很可能会获取不到资源 Charles • 2018-08-20 09:24 @渔歌:那怎么取资源呢? 渔歌 • 2018-08-20 09:46 把子域资源不打包,直接放到主域的bin目录下,子域需要一张一张的加载图片资源,(子域资...
来源: Laya_社区 发布时间: 20180525
...图1-6所示: (动图1-6) 注:变量n还可以是从.json文件中获取的文本,开发者可以自己写一个.json文件,然后在脚本中进行加载,最后利用setVar方法赋值给变量n。 在游戏中比较常用的情况就是,如图1-7所示,当每个玩家进入游戏...
来源: Laya3.0_文档 发布时间: 20251010
...对应的VS和FS片段标记。 7.2 顶点着色器 在VS片段中,需要获取顶点信息,并计算最终的顶点位置,代码如下所示: #defineGLSL textureVS #define SHADER_NAME Sprite2DTextureShader #include "Sprite2DVertex.glsl"; void main() { vertexInfo info; getVertexInfo(info); v...
来源: Laya3.0_文档 发布时间: 20251010
... 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
...如果使用固定名称的根文件,可能会由于CDN缓存导致无法获取最新的文件内容,导致热更错误。 解决方法一般是给根文件一个非cdn地址,或者给一个动态页面地址。这时候根文件通常与DCC服务器不在一起,就不能把DCC服务器的...
来源: Laya3.0_文档 发布时间: 20251010
... 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
... 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
...效(版本2.6) 骨骼动画播放完后的回调时间 Animator 如何获取当前所有动画名称呢?或者所有的AnimationClip呢? 我用list.array=Array;数据全部插进去数组里了,但是list中没有完全展示数组数据,只展示了其中的图片部分,数组能conso...
来源: Laya_社区 发布时间: 20180515