大约有 2,258 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0078 秒)
Laya_社区(1808) Laya3.0_api(129) laya_api(84) Laya2.0_api(82) Laya2.0_文档(76) Laya_示例(36) Laya3.0_文档(28) Laya2.0_示例(15)
...h2DRender会导致ColorFilter影响其他对象 先创建一个Sprite设置texture,并设置ColorFilter。再创建一个Sprite添加Mesh2DRender(这两者层级关系必须是mesh在上层) 后续层级在他们上面的Sprite,不管是使用graphics绘制,还是设置texture都会被第...
来源: Laya_社区 发布时间: 20250605
...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; } ``` ##### 初始化自定义Shader > 导入着色器代码 ```javasc...
来源: Laya2.0_文档 发布时间: 20210714
...leY scene scrollRect skewX skewY skinName source stage staticCache templet texture timer total transform url viewport visible width x y zOrder Methods _initialize _processActive addChild addChildAt addChildren addComponent addComponentInstance bubbleEvent callLater clearTimer contains customRender d...
来源: Laya3.0_api 发布时间: 20231115
...在游戏中会碰到许多,如果能够预处理一下通过生产新的texture来优化性能,那就完美了。我在百度上搜索了下这有个文章http://www.hewebgl.com/article/getarticle/108可以实现动态生成texture,希望laya官方也可以提供类似的新方法,例如sav...
来源: Laya_社区 发布时间: 20170102
...load()方法之后使用URL.basePath方法。 例如: material.diffuseTexture = Laya.Texture2D.load("res/layabox.png");box.meshRender.material = material;Laya.URL.basePath = "https://XXXX.com";//请把XXXX换成自己的真实网址;//在此之下,再使用load加载资源,都会自动加...
来源: Laya_社区 发布时间: 20180718
...th,height就不在一个体系,怎么玩? 我用 render: { sprite: { texture: "../src/view/0.png", } }, 位置都不一样 2018-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...
来源: Laya_社区 发布时间: 20180110
...der.load('resources/UI/role/mxxxx.png', Laya.Loader.IMAGE).then((res: Laya.Texture) => { let sp = new Laya.Sprite(); sp.texture = res; Laya.stage.addChild(sp); setTimeout(() => { sp.destroy() }, 1000); });重现代码如上,代码很简单。 下面是打印了Laya.Resource._idResourcesMa...
来源: Laya_社区 发布时间: 20231130
...hArr rate skinDataArray skinDic skinSlotDisplayDataArr srcBoneMatrixArr subTextureDic tfArr url uuid yReverseMatrix DEBUG interpolation Accessors cpuMemory destroyed gpuMemory id obsolute referenceCount cpuMemory gpuMemory Methods _addReference _clearReference _parse _removeReference _setCPUMemory _...
来源: Laya3.0_api 发布时间: 20231115
...行: (function() { var Sprite = Laya.Sprite; var Stage = Laya.Stage; var Texture = Laya.Texture; var Browser = Laya.Browser; var Handler = Laya.Handler; var WebGL = Laya.WebGL; (function() { // 不支持WebGL时自动切换至Canvas Laya.init(Browser.clientWidth, Browser.clientHeight, WebGL); Laya...
来源: Laya_社区 发布时间: 20180313
...on(); ani.loadAnimation("role.ani"); var gra:Graphics = ani.frames[0]; var texture:Texture = gra._one[0];//取得纹理 //如何取得纹理的pivotX和pivotY 如何取得role.ani配置中的pivotX和pivotY 2018-02-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...
来源: Laya_社区 发布时间: 20180203