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

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

591. Ts简单对象池 [ 76%]

...出出错! 该对象池中物体已经全部取出,请检查"); return null; }else if(QueuePool.GetLenght()==1){ let tempObj= QueuePool.pop(); let tempObjCopy= tempObj.clone() as Laya.MeshSprite3D; QueuePool.push(tempObj); return tempObjCopy; }else if(QueuePool.GetLenght()>1){ let tempObj= Qu...

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

592. matter.js mouseconstraint在微信小游戏中无效 [ 76%]

...geXOffset和pageYOffset属性: var ontouchstart = exports.ontouchstart = null;     var ontouchmove = exports.ontouchmove = null;     var ontouchend = exports.ontouchend = null;     var pageXOffset = exports.pageXOffset = 0;     var pageYOffset = exports.pageYOffset = 0; 2、module4...

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

593. 在一个页面多放几个iframe,里面使用引擎,一般3-4个就报错了 [ 76%]

...1 恩 一个BIG工程,我测试将 window["mozAudioContext"] = null; window["AudioContext"] = null; window["webkitAudioContext"] = null; 好吧 可以利用这个来动态决定是否可用

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

594. 小程序开放域相关 [ 76%]

...nGetMessage);             Laya.loader.load(urlconfig,new Handler( null,onLoaded),null);                          function onLoaded():void {                 trace("urlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigurlconfigv");        ...

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

595. laya.d3.core.Sprite3D_API3.0 [ 76%]

...42 创建一个 Sprite3D 实例。 Parameters Default value name: string = null 精灵名称。 Default value isStatic: boolean = false 是否为静态。 Returns Sprite3D Properties Optional _extra _extra: INodeExtra Inherited from Node._extra Defined in laya/display/Node.ts:56 _scene _scene: Node ...

来源: Laya3.0_api 发布时间: 20231115

596. laya.display.Stage [ 76%]

...响。 Sprite  bgColor : String舞台的背景颜色,默认为黑色,null为透明。Stage blendMode : String指定要使用的混合模式。目前只支持"lighter"。Sprite cacheAs : String 指定显示对象是否缓存为静态图像,cacheAs时,子对象发生变化,会自动重...

来源: Laya2.0_api 发布时间: 20190513

597. 打包app,http无法设置content-type [ 76%]

... { let req = new Request(); req.on(Event.COMPLETE, this, (data) => { cb(null, data); }); req.on(Event.ERROR, this, (err) => { console.error(err); cb(err); }); let body = data; let tp = typeof data if(tp === 'object' || tp === 'array'){ if(method === 'post' || method === 'put') { body = JSON.st...

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

598. HTTP通信 · LayaAir3.3 · 引擎文档 · LAYABOX [ 76%]

...本的文本具有相同的主机名和端口。 * @param data (default = null)发送的数据。 * @param method (default = "get")用于请求的 HTTP 方法。值包括 "get"、"post"、"head"。 * @param responseType (default = "text")Web 服务器的响应类型,可设置为 "text"、"json"、...

来源: Laya3.0_文档 发布时间: 20251010

599. GlowFilter和TimeLine/Tween一起用的问题 [ 76%]

...i = 0; i < 5; i++){             t.to(glowFilter, {blur: 10}, 200, null, 0);             t.to(glowFilter, {blur: 1}, 200, null, 0);         }         t.on(Event.COMPLETE, this, function(){             sp.filters = null;         });         t.play(0, true);     }...

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

600. 2.0 beta3 物理 DestroyJoint 报错 [ 76%]

...List = a.m_edgeA.next);         a.m_edgeA && (a.m_edgeA.prev = null);         a.m_edgeA && (a.m_edgeA.next = null);         a.m_edgeB && a.m_edgeB.prev && (a.m_edgeB.prev.next = a.m_edgeB.next);         a.m_edgeB && a.m_edgeB.next && (a...

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