大约有 159 项符合查询结果, 库内数据总量为 31,722 项。 (搜索耗时: 0.0048 秒)
Laya_社区(123) Laya3.0_文档(17) Laya2.0_文档(9) Laya3.0_api(6) laya_api(1) Laya2.0_示例(1) Laya_示例(1) Laya2.0_api(1)
...微信小游戏中如何加载XML文件? 使用Laya.loader.load("res/xml/info.xml", Laya.Handler.create(null, onLoadedXML),null,Laya.Loader.XML);来加载xml文件,在网页中能正常加载,在微信小游戏中显示 request:fail invalid url "res/xml/info.xml"。 2018-05-19 添加评论 免...
来源: Laya_社区 发布时间: 20180519
...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
...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
... Sprite2DVertex.glsl u_clipMatDir 裁剪方向 Sprite2DVertex.glsl u_blurInfo 模糊信息 Sprite2DFrag.glsl 四、attributeMap attributeMap由一个个的attribute组成。attribute主要包括了基础顶点数据和纹理相关数据两类,它们通常是只读的。这些attribute数据在顶...
来源: Laya3.0_文档 发布时间: 20251010
...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
...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
... function ipmsg() { var ss = remote_ip_info['country'] + remote_ip_info['province']+ remote_ip_info['city']; alert(ss); } </script> 此方法可行,可以成功获取到省份,但是并不是所有情形下都...
来源: Laya_社区 发布时间: 20170120
...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
...擎初始化或加载启动脚本过程中的异常处理9. conch.getWindowInfo返回值示例代码10. conch.getDeviceInfo返回值示例代码其他说明 1. 关于第三方地图 LayaNative底层渲染使用OpenGL ES渲染,使用android的GLSurfaceView控件和iOS的GLKView控件,所以无法...
来源: Laya3.0_文档 发布时间: 20260128
...理器接受两个参数: function onOrientationChange(absolute:Boolean, info:RotationInfo):void absolute: 指示设备是否可以提供绝对方位数据(指向地球坐标系),或者设备决定的任意坐标系。关于坐标系参见https://developer.mozilla.org/en-US/docs/Web/Guide/Ev...
来源: laya_api 发布时间: 20170929