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

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

1. Laya.Pool用法 [ 100%]

...OUBLE_VLAUE: string = "proto_ParamsProto";         public static PROTO_FLOAT_VLAUE: string = "proto_ParamsProto";         public static PROTO_INT64_VLAUE: string = "proto_ParamsProto";         public static PROTO_BOOL_VLAUE: string = "proto_ParamsProto";         public static PROTO_S...

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

2. spine骨骼动画如何获取某个骨骼的坐标 [ 92%]

... var aniClipIndex:int = getAniClipIndex(nameOrIndex); var curOriginalData:Float32Array = new Float32Array(_templet.getTotalkeyframesLength(aniClipIndex));   var interval:Number = 1000.0 / _player.cacheFrameRate; var playTime:Number = _templet.getAniDuration(aniClipIndex); var lenJ:int = playTime / ...

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

3. 关于2D粒子的渲染问题 [ 90%]

...在下边的方法   public override function addParticleArray(position:Float32Array, velocity:Float32Array):void {   中,把所有的参数放到一个数组中:        var particleData:ParticleData = ParticleData.Create(settings, position, velocity, _currentTime);       var startIndex...

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

4. shader报错 [ 89%]

...删掉,所以改成 if defined 了             precision highp float;             precision highp int;         #else             precision mediump float;             precision mediump int;         #endif 2021-11-26 0 0 分享 微博 QZONE 微信 为什么被折...

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

5. shader报错 [ 89%]

...删掉,所以改成 if defined 了             precision highp float;             precision highp int;         #else             precision mediump float;             precision mediump int;         #endif 2021-11-26 0 0 分享 微博 QZONE 微信 ʚ潘特儿 赞...

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

6. socket大型项目回调 [ 84%]

... { uInt32 : 0, sInt32 : 0, int32 : 0, double : 1, string : 2, message : 2, float : 5 }; private static _clients:any = {}; private static _servers:any = {}; static init(protos:any):void{ this._clients = protos && protos.client || {}; this._servers = protos && protos.server || {}; } st...

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

7. Laya中使用shader的问题 [ 83%]

...: uniform vec3 iResolution; // viewport resolution (in pixels)  uniform float iGlobalTime; // shader playback time (in seconds)  uniform float iTimeDelta; // render time (in seconds)  uniform int iFrame; // shader playback frame  uniform float iChannelTime[4]; // channel playback time (in seco...

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

8. 角色模型的材质列表切换后,不播放动作了 [ 81%]

...rldMat*a_Normal;}"; var ps = "#ifdef FSHIGHPRECISION\n" + "precision highp float;\n" + "#else\n" + "precision mediump float;\n" + "#endif\n" + "varying vec3 v_Normal;\n" + "varying vec2 v_Texcoord;\n" + "uniform sampler2D u_texture;\n" + "void main(){\n" + "gl_FragColor=texture2D(u_texture, v_Texcoo...

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

9. 为什么我在shader中调节透明度没有效果 [ 80%]

...: 与内容相关的链接 提交 1 个回复 缨 赞同来自: 请使用float而不是int,把0改成0.0或0. 2019-10-17 0 1 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被折叠 要回复问题请先登录 发起人 = = 相关问题 请问粒子,shader,动画缓存的优化应...

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

10. AS翻译成JS的时候能不能自动进行类型转换啊?不然每个地方都要手动在AS进行手动添加强制转换 [ 70%]

...,还有不同类型直接的赋值。 比如用int类型变量去接收float类型的值 Monica • 2017-10-26 12:02 @momo199059:跟你确认个问题,你说的这个是在LayaAir里边的还是LayaFlash里边的呢? momo199059 • 2017-10-26 15:16 @Monica:LayaAir momo199059 • 2017-10-26 18:...

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