大约有 908 项符合查询结果, 库内数据总量为 31,580 项。 (搜索耗时: 0.0180 秒)
Laya_社区(631) Laya3.0_api(68) Laya2.0_api(57) laya_api(53) Laya2.0_文档(50) Laya3.0_文档(28) Laya2.0_示例(11) Laya_示例(10)
...(); // 异步加载建筑图片 this.loadBuildingImage(); } //异步加载建筑图片 private loadBuildingImage(): void { Laya.loader.load( "res/building.png", // 你的建筑图片路径 Laya.Handler.crea...
来源: Laya_社区 发布时间: 20251125
...关注: 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=\"4\">" + ...
来源: Laya_社区 发布时间: 20170423
...片(路径:https://layaair.com/3.x/demo/resources/res/test.bin) */ const imageUrl = "resources/res/test.bin"; // 加载二进制图片文件 Laya.loader.fetch(imageUrl, "arraybuffer").then((arrayBuffer: ArrayBuffer) => { // 直接发送加载后的 ArrayBuffer 数据 this.socket.send(arrayBuffe...
来源: Laya3.0_文档 发布时间: 20251010
...以增加stencil功能 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 问题状态 最新活动: 2018-10-10 15:15 浏览: 2449 关注: 4 人
来源: Laya_社区 发布时间: 20180824
...ndler.create(this, this.startLoaded)); 代码是这样的 报错 Access to Image at 'http://caifu-1251177394.file.myqcloud.com/beta/book/bookLaya/img/progressBar$bar.png' from origin 'http://bookportal.com' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the re...
来源: Laya_社区 发布时间: 20180208
...如果去掉这个提示 两个问题 有元件支援视频流渲染吗? Image元件读不了资料流 设置射线不能穿透UI 请问如何画出ray射线 尽量保证同一个面板中的所有资源用一个图集 VS 零散并使用cacheAs=bitmap 问题状态 最新活动: 2020-08-20 20:06 ...
来源: Laya_社区 发布时间: 20200810
...com/doc/?nav=zh-js-1-3-1 //data.head_img:头像的url路径 head_img.loadImage(data.head_img, Laya.Handler.create(head_img, function () { this.height = this.width = 77; var cMask = new Laya.Sprite();//创建遮罩对象 var r = 38.5; //遮罩圆形半径 ...
来源: Laya_社区 发布时间: 20181119
...canvas:* = htmlCanvas1.getCanvas(); var imgData:String = canvas.toDataURL("image/jpeg"); 代码是这样的,情况是我这个bg内的子节点发生变化后重新生成图片的base64数据的时候发现数据都是黑屏的数据 2017-09-21 添加评论 免费帖 --> 分享 微博 QZONE 微信...
来源: Laya_社区 发布时间: 20170921
...proto.onLoaded (http://127.0.0.1:61385/game/code.js:12700:11) at HTMLImage.onload (http://127.0.0.1:61385/game/code.js:21213:15) at Image._source._source.onload (http://127.0.0.1:61385/game/code.js:20175:11) 请问这是什么问题,微信小游戏支持加载位图字体吗? 2018...
来源: Laya_社区 发布时间: 20180306
...入口 class GameMain { private btn: Laya.Button; private skin: string = 'images/button.png'; constructor() { Laya.init(200, 300); Laya.loader.load(this.skin, Laya.Handler.create(this, () => { this.btn = this.createBtn(this.skin); this.btn.on(Laya.Event.CLICK, this, this.onClick); })); } /** * ...
来源: Laya_社区 发布时间: 20170511