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

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

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

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

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

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

615. IDE创建3D示例项目(TypeScript-3D基础(TS)-快速开始一个LayaAir3D项目) [ 68%]

...ar material: Laya.BlinnPhongMaterial = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(null, function(tex:Laya.Texture2D) { material.albedoTexture = tex; })); box.meshRenderer.material = material; ``` #####

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

616. 动态阴影被切割了?为啥没有显示完成的阴影 [ 68%]

... var LayaAir3D = (function () { var currentCube; var moveTimer; var currentTexture = 0; var prevBox; var boxList = []; var initBoxW = 1; var initBoxH = 1; var initBoxL = 0.5 function myCube(x, y, z, textureUrl, posX, posY, posZ) { posX = posX || 0; posY = posY || 0; posZ = posZ || 0; var instance = ...

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

617. 粒子会不会有内存泄漏? [ 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; var Loader = Laya.Loader; var Stat = Laya.Stat; var Particle2D = Laya.Particle2D; (function () { // Laya.init(Browser.clien...

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

618. laya.display.FrameAnimation [ 68%]

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

来源: laya_api 发布时间: 20170929

619. LayaAPP打包后laya.webgl.j错误,浏览器测试没问题 [ 68%]

...,请把此信息截图给研发商 TypeError: Cannot read property '_glTexture' of undefined http://stand.alone.version/lib ... 5906: TypeError: Cannot read property '_glTexture' of undefined _i32b[2]=isloaded?value.bitmap._glTexture.id:0; ^^ TypeError: Cannot read property '_glTexture' of undefin...

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

620. laya.d3.graphics.VertexPositionNormalTexture0Texture1 [ 68%]

...ackages | All Classes | Index | Frames No Frames VertexPositionNormalTexture0Texture1Properties | Methods Packagelaya.d3.graphicsClasspublic class VertexPositionNormalTexture0Texture1InheritanceVertexPositionNormalTexture0Texture1 ObjectImplements IVertex VertexPositionNormalTexture 类用...

来源: laya_api 发布时间: 20170929