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

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

81. 关于截屏的问题 [ 72%]

... // //window.image = window.document.createElement("img"); //image.putImageData(arrayBuff,width,height); //...使用image对象 }) } console.log("onCharge-------------------------9");     -----------------------------------------------------------------------LOG如下: 06-09 11:48:56.524 1040-14...

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

82. spine 回调函数的参数没有效果 [ 72%]

...数没有效果 spine中定义的回调方法中设置int值,回调中 data的intValue 没有改变都是0,spine 输出文件见附件   sk_timelimit.on(Laya.Event.LABEL,this,this.animLabel); private animLabel(data:any) { }   var str = "readyGO1"; sk_view.sk_timelimit.play(str,false); 附件 :...

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

83. 如何使用graphics绘画虚线 [ 72%]

...-04-24 10:20 浏览: 2333 关注: 5 人 逐浪人 • 2018-08-04 11:08 var data: string = "data:image/svg+xml," + "<svg xmlns=\"http://www.w3.org/2000/svg\" version=\"1.1\">" +"<g fill=\"none\" stroke=\"black\" stroke-width=\&...

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

84. [LayaAir2] 在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 71%]

... /** * example:videodom 使用Laya.HtmlVideo播放视频 * @ author:xs * @ data: 2024-03-05 16:20 */ export default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.H...

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

85. laya.resource.Resource_API3.0 [ 71%]

...源,销毁后资源不能恢复。 Returns void event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是需...

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

86. laya.physics.Physics_API3.0 [ 71%]

...ts:37 全局物理单例 Returns Physics Methods event event(type: string, data?: any): boolean Inherited from EventDispatcher.event Defined in laya/events/EventDispatcher.ts:32 派发事件。 Parameters type: string 事件类型。 Optional data: any (可选)回调数据。注意:如果是...

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

87. laya.net.Loader [ 71%]

...PropertyDefined By  cache : Boolean[read-only] 是否缓存。Loader  data : *[read-only] 返回的数据。Loader  maxTimeOut : int = 100[static] 每帧回调最大超时时间,如果超时,则下帧再处理。Loader  parserMap : Object[static] 资源解析函数对应表,用来扩...

来源: laya_api 发布时间: 20170929

88. 用Loader加载完atlas,然后使用animation播放问题 [ 71%]

...ad.on(Laya.Event.COMPLETE, this, this.loadComplete); this._load.load(this._data.url, Laya.Loader.ATLAS, true); 加载完成后 this._ani = new Animation(); this._ani.loadImages(这里传入解析好的urls) 会提示重复加载 为什么我都加载完了 还需要用ani的loadImages 有没有别...

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

89. 技术文档svg不可以使用 [ 71%]

...引擎Laya.init(600, 400, Laya.WebGL);Laya.stage.bgColor = "#ffcccc";var data = "data:image/svg+xml," + '<svg xmlns="http://www.w3.org/2000/svg" width="200" height="200">' +'<foreignObject width="100%" height="100%">' +'<div xmlns="http://www.w3.org/1999/xhtml" style="font-size:40px"&...

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

90. Cannot set property 'xxxxxx' of undefined 的问题 [ 71%]

...明新增加的成员变量,访问的时候说没有定义。 SharkItOffData类派生于GameDataBase基类,ShareItOffController派生于UiControl的基类,UiControl里有public data :GameDataBase;变量。在ShareItOffController里面用一个单例去请求网络数据回调为data赋值。...

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