大约有 2,543 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0064 秒)
Laya_社区(2051) Laya3.0_api(129) Laya2.0_文档(109) laya_api(84) Laya2.0_api(82) Laya3.0_文档(37) Laya_示例(36) Laya2.0_示例(15)
...ght (in promise) TypeError: value._addReference is not a function at Texture.<anonymous> (laya.core.js:15911) at Texture.__proto._onLoaded (laya.core.js:15752) at EventHandler.__proto.runWith (laya.core.js:1410) at ResInfo.__proto.event (laya.core.js:1166) at Load...
来源: Laya_社区 发布时间: 20200201
...varying vec2 v_Texcoord0; varying vec3 v_Normal; uniform sampler2D u_AlbedoTexture; void main() { vec4 albedoTextureColor = vec4(1.0); albedoTextureColor = texture2D(u_AlbedoTexture, v_Texcoord0); gl_FragColor=albedoTextureColor; } ``` ### 1.定义自定义属性 **Material** 是所有的材质的...
来源: Laya2.0_文档 发布时间: 20210715
...手动刷新。 注意: 1.Sprite tag : * 对象的标签。 Component texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.timer...
来源: laya_api 发布时间: 20170929
...material = meshSprite3D.meshRender.material; //法线贴图 material.normalTexture = Laya.Texture2D.load(this.normalMapUrl[i]); } Laya.timer.frameLoop(1, this, function () { monster1.transform.rotate(this.rotation); monster2.transform.rotate(this.rotation); }); }class BlinnPhong_NormalMap { private ...
来源: Laya_示例 发布时间: 20251209
...tus }, (state, responseText) => { this.errors[path] = `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`; if (error) error(path, `Couldn't load texture atlas ${path}: status ${status}, ${responseText}`); this.toLoad--; this.loaded++; }); 附件 : --> 2022-01-22 添加评...
来源: Laya_社区 发布时间: 20220122
...染时错位的bug 在2.3.0如果你用了裁剪空白区域(可以参阅texturepacker的裁剪空白区域功能,一样的原理),在你对显示单位设置锚点后,显示有很大概率会错位。 官方Git:https://github.com/layabox/LayaAir/tree/master/src/layaAir/laya(每周去...
来源: Laya_社区 发布时间: 20200708
...资源所在图集也存在,不过小图的source的_referecentCount==0,_texture==null。不知是不是这个原因引起? 如附件图,black.png是用到的小图,所在图集为comui.atlas 附件 : --> 2022-07-22 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20220722
...合适 请问Native下,怎么将二进制的图片转换为bitmap或者texture? 将ui设置为bitmap,当鼠标悬浮在button上时,会导致ui重绘,有什么方法能避免吗? button就是一张静态图+文本,不需要选中按下等状态 Maximum call stack size exceeded 微信...
来源: Laya_社区 发布时间: 20171113
...: void { console.log("加载进度: " + progress); } private onAssetLoaded(texture:Laya.Texture){ console.log("加载结束"); } Log输出内容 Warning!,this class[MiniAdpter] already exist: Object {} 加载进度: 0.3 加载进度: 0.8999999999999999 加载进度: 1 加载结束 lose skin lose ski...
来源: Laya_社区 发布时间: 20180314
...变色,会与拖尾的颜色混合叠加形成最终颜色 纹理模式(textureMode) 控制纹理应如何应用于拖尾。有平铺(Stretch)和拉伸(Tile)两种模式 纹理(texture) 应用于拖尾的纹理,具体效果受纹理模式(textureMode)的影响。 1.3属性讲解 下面我们对T...
来源: Laya3.0_文档 发布时间: 20251010