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

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

921. 如何使用graphics绘画虚线 [ 52%]

...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

922. tiledMap显示层级问题 [ 52%]

...需要加载的区块名称,通过Laya.loader.load(this.m_mapName, Laya.Handler.create(this, this.onLoadCompleteHandler), null, Laya.Loader.ATLAS);加载资源,成功后调用this.m_tileMap.createMap(OOXX);来显示。不知道这样调用是否正确? 因为看到之前论坛有人提问,...

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

923. skin加载url资源不会刷新 [ 52%]

...);         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

924. 2.0)js按照官方遮罩写的程序,无法正常执行, 请问怎么回事,代码见内。 [ 52%]

.../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

925. [LayaAir3]3D场景里面鼠标感应区域 3.2.1跟3.3不同 [ 52%]

...例如下:   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

926. IDE发布之后,在res下并没有任何资源,这是什么情况啊? [ 52%]

...。改成 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

927. Button属性详解(ActionScript-IDE篇(AS3)-IDE组件属性详解) [ 52%]

...下代码:** ```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

928. Uncaught unknown animationClip version. [ 52%]

...来自: 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

929. 关于loader加载Loader.JSON的一些问题 [ 52%]

...ON资源时,发现一个奇怪的问题: Laya.loader.load(resUrl, Laya.Handler.create(this, function (res) { //解析题目 log(res);   //放置方块 }), null, Laya.Loader.JSON); }   代码运行到这老是报错,报错原因是有不认识的字符,我想了下,resUrl指向的是本...

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

930. load方法加载cdn上面的图片资源的时候直接报了跨域不同源的问题,怎么破? [ 52%]

...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