大约有 678 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0056 秒)
Laya_社区(341) Laya3.0_api(164) Laya2.0_api(58) laya_api(54) Laya2.0_文档(29) Laya3.0_文档(19) Laya2.0_示例(7) Laya_示例(6)
getimagedata直接调用无法获取有效像素问题 更新: 在 现在有没有办法把一个display.sprite转存成图片 无意间找到了 答案 getimagedata无法直接使用 1 需要先 c= Laya.stage.drawToCanvas(720,1280, 0,0) 2 然后 调用 t = new Trxture(c); t.getPixels(0,0, 720,...
来源: Laya_社区 发布时间: 20171201
...fferUsage canRead indexCount indexType indexTypeByteCount Methods _setIndexData destroy getData setData unbind Constructors constructor new IndexBuffer3D(indexType: IndexFormat, indexCount: number, bufferUsage?: BufferUsage, canRead?: boolean): IndexBuffer3D Overrides IndexBuffer.constructor Defined...
来源: Laya3.0_api 发布时间: 20231115
..."post", "text"); http.once(Laya.Event.COMPLETE, this, function(data:any){ var data = JSON.parse(data); }); 附件 : --> 2024-01-21 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 0 个...
来源: Laya_社区 发布时间: 20240121
... /** * 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
...me] = callback; //loading Main.tl.startLoad(); } private function callback(data:*):void { //移除 var script:* = Browser.getElementById("serverlist"); Browser.document.head.removeChild(script); DataCollection.jsonp.parseData(data); //loading Main.tl.stopLoad(); } 2018-02-09 0 0 分享 微博 QZONE ...
来源: Laya_社区 发布时间: 20180209
...我们看下简单的脚本怎么实现这种效果。 ```javascript var data = '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL...
来源: Laya2.0_文档 发布时间: 20210715
...this.particleSprite3D.particleSystem.startColorConstant = new Laya.Vector4(data.color.x,data.color.y,data.color.z,1);这个是改变粒子颜色的代码 2019-07-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 1...
来源: Laya_社区 发布时间: 20190709
...类型如下: - `ArrayBuffer` - `Blob` - `Document` - `DOMString` - `FormData` - `null` #### setRequestHeader() 给指定的HTTP请求头赋值.在这之前,你必须确认已经调用 [`open()`](https://developer.mozilla.org/zh-CN/docs/Web/API/XMLHttpRequest#open) 方法打开了一个url. ### ...
来源: Laya2.0_文档 发布时间: 20210714
...option = { title: { text: 'ECharts 入门示例' }, tooltip: {}, legend: { data:['销量'] }, xAxis: { data: ["衬衫","羊毛衫","雪纺衫","裤子","高跟鞋","袜子"] }, yAxis: {}, series: [{ name: '销量', type: 'bar', data: [5, 20, 36, 10, 10, 20] }] }; // 使用刚指定的配置项和数...
来源: Laya_社区 发布时间: 20180707
...我们看下简单的脚本怎么实现这种效果。 ```javascript var data = '' + '' + '' + 'I like ' + '' + 'cheese' + '' + '' + ''; var DOMURL = window.URL || window.webkitURL || window; var img = new Image(); var svg = new Blob([data], {type: 'image/svg+xml'}); var url = DOMURL.createObjectURL...
来源: Laya2.0_文档 发布时间: 20210715