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

大约有 17 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0032 秒)

1. 粒子动画透明度问题 [ 100%]

...attribute vec4 a_StartColor;\nattribute vec4 a_EndColor;\nattribute vec3 a_SizeRotation;\nattribute vec2 a_Radius;\nattribute vec4 a_Radian;\nattribute float a_AgeAddScale;\nattribute float a_Time;\n\nvarying vec4 v_Color;\nvarying vec2 v_TextureCoordinate;\n\nuniform float u_CurrentTime;\nuniform f...

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

2. [0]laya-zip让你的游戏加载速度提升350%!! [ 92%]

...libs/文件夹下,在bin/index.js文件中加载bundle.js前加入一行:[size=14][code]loadLib(cdn + "libs/laya-zip.js") [/size][/code] 在Main.ts中Laya初始化后加入:[size=14][code]LayaZip.Init(); [/size][/code]使用方法二 项目支持npm包增量编译的,使用npm安装方式比较好.(...

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

3. texture中的UV中有8个值,这8个值都指的什么呢 [ 92%]

...误! Texture,和Texture2D如何互转? 微信真机下游戏MAX_TEXTURE_SIZE 微信小游戏 sharedCanvas 创建的Texture,能否再调用Texture.createFromTexture创建新纹理 请问layabox支持render texture么? 关于Texture的nv layaAir的位图字体fnt可以兼容 egret 的 texture me...

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

4. 3d资源无法写入缓存 [ 88%]

...niFileMgr.onSaveFile=function(readyUrl,md5Name,isAdd,encoding,callBack,fileSize){ (isAdd===void 0)&& (isAdd=true); (encoding===void 0)&& (encoding=""); (fileSize===void 0)&& (fileSize=0); var fileurlkey=readyUrl; if(MiniFileMgr.filesListObj['fileUsedSize']==null) MiniFileMgr....

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

5. 2d 自定义shader [ 86%]

...        attribute vec4 color;             uniform vec2 size;             uniform mat4 mmat;             varying vec2 v_texcoord;             varying vec4 v_color;             varying float v_testValue;             void m...

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

6. 分享一个Shader版的CoolDown实现 [ 85%]

...\             attribute vec4 color; \             uniform vec2 size; \             uniform mat4 mmat; \             varying vec2 v_texcoord; \             varying vec4 v_color; \             void main(){ \                 vec4 pos =mmat*vec4(position.x,pos...

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

7. shader 问题[关闭] [ 80%]

...  attribute vec2 texcoord;     attribute vec4 color;     uniform vec2 size;     uniform mat4 mmat;     varying vec2 v_texcoord;varying vec4 v_color;     void main(){       vec4 pos =mmat*vec4(position.x,position.y,0,1);       gl_Position = vec4((pos.x/size.x-0.5)*2.0, (0.5-pos.y/siz...

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

8. 关于laya生成的canvas定位问题导致内部事件不正确 [ 72%]

...00px;margin: 10% auto 0;background: #ccc;position: relative;} .msgDiv{font-size: 30px;color: #fff;text-align: center;padding-top: 30px;} </style> </head> <body> <div class="layaDiv"></div> <div class="msgDiv">日志</div> </body> <script src="https:...

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

9. laya2.0版本,富文本HTMLDivElement中<p>标签里使用<br />标签时报错,在<span>里也不行 [ 70%]

...nt-family:宋体;                  字体      * font-size:20px;                      字体大小      * font-weight:bold:none;               字体是否是粗体,功能同bold      * color:#ff0000;                ...

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

10. Error: Set breakpoints request timed out [ 68%]

...动画出报错Uncaught getUint16 error - Out of bounds Error: asBitmap no size! 切换场景编辑器时 Laya3D init error must support webGl LayaAirIDE2.2 - Laya3D init error ,must support webGL unity导出的场景在手机上提示"request:fail invalid url" 同一个Graphics里面绘制超过200...

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