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

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

41. 关于代码打印调试的一些问题 [ 72%]

...test debug print ---"); console.error("--- test error print ---"); console.info("--- test Info print ---"); console.warn("--- test Trace print ---");    打包apk后  使用模拟器运行 DDMS查看打印内容 发现在logcat中打印的内容不是标记为红色的 但是在layabox中 consol...

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

42. 2D网格渲染器 · LayaAir3.3 · 引擎文档 · LAYABOX [ 72%]

...ain() { vec4 pos; //先计算位置,再做裁剪 getPosition(pos); vertexInfo info; getVertexInfo(info); v_texcoord = info.uv; v_color = info.color; #ifdef LIGHT_AND_SHADOW lightAndShadow(info); #endif gl_Position = pos; } #endGLSL #defineGLSL baseRenderPS #define SHADER_NAME baseRender2D #if defi...

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

43. 自定义2D Shader · LayaAir3.3 · 引擎文档 · LAYABOX [ 71%]

... Sprite2DVertex.glsl u_clipMatDir 裁剪方向 Sprite2DVertex.glsl u_blurInfo 模糊信息 Sprite2DFrag.glsl 四、attributeMap attributeMap由一个个的attribute组成。attribute主要包括了基础顶点数据和纹理相关数据两类,它们通常是只读的。这些attribute数据在顶...

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

44. laya.d3.component.staticmesh.StaticBatchMesh_API3.0 [ 71%]

...tex: VertexBuffer3D index: IndexBuffer3D Returns void Static create create(info: StaticMeshMergeInfo): StaticBatchMesh Defined in laya/d3/component/staticmesh/StaticBatchMesh.ts:26 Parameters info: StaticMeshMergeInfo Returns StaticBatchMesh Globals "laya/d3/component/staticmesh/StaticBatchMesh" Sta...

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

45. list 下 生成图片模糊 [ 71%]

...ng'); p2.pos(7, 7); p2.name = 'blue'; background.addChild(p2); if (element.info.col == 1) { background.setImage('assets/major/waysheet/ludan_small_6.png'); } else if (element.info.col == 2) { background.setImage('assets/major/waysheet/ludan_small_7.png'); } background.getChildAt(0).visible = (elemen...

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

46. 使用HttpRequest向外部链接请求ip所在省份时,遇到 No 'Access-Control-Allow-Origin' header错误 [ 71%]

...         function ipmsg() {             var ss = remote_ip_info['country']  + remote_ip_info['province']+ remote_ip_info['city'];             alert(ss);         }     </script> 此方法可行,可以成功获取到省份,但是并不是所有情形下都...

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

47. 关于打包App后Texture.getPixels此方法不能使用 [ 71%]

...ext.drawTexture(this, -x, -y, this.width, this.height, 0, 0);       var info:* = Browser.context.getImageData(0, 0, width, height);     }     return info.data; } 这个方法在打包APP后就会报错,错误是在非webgl下取不到图片信息   2017-10-30 添加评论 免费帖 --> 分...

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

48. laya.device.motion.Gyroscope [ 68%]

...理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Ev...

来源: laya_api 发布时间: 20170929

49. laya.device.motion.Gyroscope [ 68%]

...理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Ev...

来源: Laya2.0_api 发布时间: 20190513

50. viewport 的用法 [ 62%]

...ayer = Laya.Layer;   var Rectangle = Laya.Rectangle;   function layaSlot(info){       layaSlot.__super.call(this);       this.size(200,200);       this.graphics.drawRect(0,0,200,200,'#123456');       var viewPort = new Rectangle(0,0,200,200);             this.viewport = viewPort;...

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