大约有 1,138 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0054 秒)
Laya_社区(821) Laya2.0_文档(173) Laya_示例(51) Laya2.0_示例(43) Laya3.0_api(23) Laya3.0_文档(20) Laya2.0_api(4) laya_api(3)
...ar sp: Laya.Sprite = new Laya.Sprite(); sp.loadImage(data, 0, 0, 1280, 720,Handler.create(this,()=>{ sp.graphics.getBoundPoints().forEach(e=>{ console.log("_getBoundPointsM:",e); }); })); sp.x=0; sp.y=0; this._sptse=sp; Laya.stage.addChild(sp);
来源: Laya_社区 发布时间: 20170423
...需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为看到之前论坛有人提问,...
来源: Laya_社区 发布时间: 20170525
...); Laya.loader.load("http://10.144.1.20:8081/files/ ... ot%3B, Handler.create(this, function (): void { var t: Texture = Laya.loader.getRes("http://10.144.1.20:8081/files/ ... 6quot;); var ape: Sprite = new Sprite(); ape.graphics.draw...
来源: Laya_社区 发布时间: 20170831
.../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; //遮罩圆形半径 cMask.g...
来源: Laya_社区 发布时间: 20181119
...例如下: Laya.loader.load("RenderTexture.rendertexture", null, Laya.Handler.create(this, null, null, false)).then(() => { this.spRole.texture = Laya.loader.getRes("RenderTexture.rendertexture"); //设置纹理的宽高为舞台大小,这样才不会拉伸变形 this.spRole.texture.source...
来源: Laya_社区 发布时间: 20250109
...。改成 Laya.loader.load("res/atlas/Resources.json",laya.utils.Handler.create(this,this.onReader),null,laya.net.Loader.ATLAS);就好了 Buzhihew • 2017-01-11 15:50 @Monica:.......我.....总之谢谢啊啊啊 Monica • 2017-01-11 15:51 @Buzhihew:不客气(*^__^*) ...... wuquanan • 2...
来源: Laya_社区 发布时间: 20170111
...下代码:** ```java package { import laya.ui.Button; import laya.utils.Handler; import laya.webgl.WebGL; public class ComponentDemo { //按钮资源路径 private var skin:String = "./res/img/btn_test.png"; public function ComponentDemo() { //初始化引擎,设置宽高并开启WebGL渲染模...
来源: Laya2.0_文档 发布时间: 20210715
...来自: Laya.Scene3D.load("LayaScene_scene1/Conventional/scene1.ls", Laya.Handler.create(this, function (s: Laya.Scene3D): void { var scene = s; Laya.stage.addChild(scene); })); 加载代码 2019-03-13 0 0 分享 微博 QZONE 微信 Zong 赞同来自: 断点调试显示clip.versio...
来源: Laya_社区 发布时间: 20190313
...ON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res); //放置方块 }), null, Laya.Loader.JSON); } 代码运行到这老是报错,报错原因是有不认识的字符,我想了下,resUrl指向的是本...
来源: Laya_社区 发布时间: 20200311
...e.log('Gzdaze='); console.log(Gzdaze); Laya.loader.load(Gzdaze.dialogList, Handler.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...
来源: Laya_社区 发布时间: 20180208