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

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

601. [LayaAirIDE3]laya3.3 使用Mesh2DRender会导致ColorFilter影响其他对象 [ 68%]

...h2DRender会导致ColorFilter影响其他对象 先创建一个Sprite设置texture,并设置ColorFilter。再创建一个Sprite添加Mesh2DRender(这两者层级关系必须是mesh在上层) 后续层级在他们上面的Sprite,不管是使用graphics绘制,还是设置texture都会被第...

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

602. ShaderPass介绍(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 68%]

...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

603. laya.ani.bone.Skeleton_API3.0 [ 68%]

...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

604. drawcall性能优化,sprite绘制保存为新纹理 [ 68%]

...在游戏中会碰到许多,如果能够预处理一下通过生产新的texture来优化性能,那就完美了。我在百度上搜索了下这有个文章http://www.hewebgl.com/article/getarticle/108可以实现动态生成texture,希望laya官方也可以提供类似的新方法,例如sav...

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

605. 如何加载使用从服务器下载的图片 [ 68%]

...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

606. matter.js的长度宽度什么的和laya的x,y,width,height就不在一个体系,怎么玩? [ 68%]

...th,height就不在一个体系,怎么玩? 我用 render: { sprite: { texture: "../src/view/0.png", } }, 位置都不一样 2018-01-10 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_Aaron 赞同来自: ...

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

607. [LayaAir3]3.0版本资源销毁后_referenceCount不会变成0,2.0版本是正常的可以变为0 [ 68%]

...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

608. laya.ani.bone.Templet_API3.0 [ 68%]

...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

609. DrawPie例子中无法显示遮罩区域 [ 68%]

...行: (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

610. ide创建的.ani文件中的属性pivotX和pivotY,代码中animation实例中要怎么获取 [ 68%]

...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