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

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

571. Skeleton骨骼动画内存泄漏 [ 70%]

...来自: 2.0.0版本下 已经解决这个问题  修改 laya.core.js var Texture 对象里 __proto.destroy=function(){ if (!this._destroyed){ this._destroyed=true; if (this.bitmap){ this.bitmap._removeReference(this._referenceCount); if (this.bitmap.referenceCount===0){ this.bitmap.destroy(); // co...

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

572. 提问关于龙骨动画预加载的问题,求解 [ 70%]

...监听解析完成事件,直接调用骨骼动画解析方法parseData(texture:Texture, skeletonData:ArrayBuffer, playbackRate:int = 30):void,之后,直接创建龙骨对象mArmature = mFactory.buildArmature();这样就可以正常运行。。。。。。。。。。。。想问问,那我还...

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

573. 图片遮罩大小跟设置不一致 [ 70%]

... (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_社区 发布时间: 20171220

574. 时间轴编辑器 无法对Image节点的 x以外的属性进行key帧 [ 70%]

...生成控制 其他属性的关键帧 (skin 和 y)   另 GraphicNode和Texture节点是可以正常的添加所有属性的关键帧的   附件 : --> 2018-03-19 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 q...

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

575. 骨骼挂点图片不展示的问题 [ 70%]

...these 赞同来自: MissingMethodException: Method not found: 'UnityEngine.Texture2D.EncodeToPNG'. LayaExport.DataManager.saveData () LayaExport.DataManager.getData () LayaAir3D.exportResource (Boolean isDebug) (at Assets/LayaAir3D/LayaTool/LayaAir3D.cs:427) LayaAir3D.OnGUI () (at Assets/LayaAir3D/L...

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

576. 如何获取animation的node节点? [ 69%]

... Laya.Sprite(); // 创建一个用于存放位图数组的临时精灵 let texture = Laya.loader.getRes(options.srcPath+options.srcName+".png"); // 读取图集生成大切片 let textureIns = Laya.Texture.create(texture, aniProps.res[aniProps.mc[options.srcName].frames[i].res].x, aniProps.res[aniPr...

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

577. 物理碰撞器(TypeScript-3D基础(TS)-LayaAir3D之物理系统) [ 69%]

...var planeMat:Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/threeDimen/Physics/grass.png", Laya.Handler.create(this, function(tex:Laya.Texture2D) { planeMat.albedoTexture = tex; })); //设置纹理平铺和偏移 planeMat.tilingOffset = new Laya.Vector4(10, 10, 0, ...

来源: Laya2.0_文档 发布时间: 20210715

578. Laya.BlinnPhongMaterial.RENDERMODE_TRANSPARENT设置透明度不行了? [ 69%]

... Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial();         Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function (tex: Laya.Texture2D) {             material.albedoTexture = tex;         }));         material.albedoColor = new Laya.Vector4(1.0, 1.0, 1.0, ...

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

579. 关联shader的uniform(JavaScript-3D基础(JS)-LayaAir3D之shader) [ 69%]

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

580. laya.particle.Particle2D [ 69%]

...但是可以通过调用 reCache 方法手动刷新。 注意: 1.Sprite texture : Texture设置一个Texture实例,并显示此图片(如果之前有其他绘制,则会被清除掉)。等同于graphics.clear();graphics.drawTexture()Sprite timer : Timer时间控制器,默认为Laya.time...

来源: laya_api 发布时间: 20170929