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

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

1421. 如何在3d场景中添加文字 [ 53%]

...; this.txtName.pos(this._outPos.x / Laya.stage.clientScaleX - this.txtName.width/2, this._outPos.y / Laya.stage.clientScaleY);   2017-10-10 0 0 分享 微博 QZONE 微信 ltmking 赞同来自: //设置其他玩家角色名称跟随角色模型 这后边的代码放到针刷新事件里 2017-10-10 0...

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

1422. 使用graphsics.drawTexture画出来的图片与使用button创建同样宽高图形竟然不重合?? [ 53%]

...rite_show.graphics.drawTexture(Laya.loader.getRes(this.resStr), 0, 0, this.width, this.height); 画出来的两个对象,sprite_show的图形竟然被缩小了一点点。。。都是同样的宽高 2017-11-02 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请...

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

1423. alertexception info: [Typeerror: null is not object (evaluating this. vaoext createvertexarrayoes"] [ 53%]

...触发时会报null 跳转场景后laya.core.js就报Cannot read property 'width' of null的错误 问题状态 最新活动: 2019-12-26 12:01 浏览: 1343 关注: 2 人 圣诞老人的麋鹿 • 2020-01-15 17:02 laya 2.4.0也有这个问题,laya的引擎版本和native都为2.4.0仍然出现,...

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

1424. Laya 使用VideoTexture播放视频 [ 53%]

...,百度一下之后:void gl.texImage2D(target, level, internalformat, width, height, border, format, type, HTMLVideoElement source); 最后一个参数支持HTMLVideoElement对象,于是就想看看Laya又没有封装这个接口,全局搜索之后果然有这个接口:loadImageSource 于...

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

1425. native下旋转tween卡顿 [ 53%]

...pe.loadImage("res/star.png"); Laya.stage.addChild(ape); ape.x = Laya.stage.width / 2; ape.y = Laya.stage.height / 2; ape.scale(0.3,0.3); ape.pivot(628,613); Laya.Tween.to(ape,{rotation:360},60000); 其中转一圈的时间设置为60s或者更长,native下卡顿是非常明显的,但在web下非常...

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

1426. 请问我想实现一个表格,表格列会动态增减,应如何实现? [ 53%]

...n里的style属性好像不支持很多属性,比如display:inline-block;width:200;这种方式,就不起作用。如果不设定span的宽度,那么看起来就不像表格了,因为每个span里的文字数目是不完全一样的。 请问专家们像我这种需求应如何实现比较...

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

1427. captureScreen的回调函数的参数ImageData(类型是一个arrayBuffer)如何获得 [ 53%]

...htmlCanvas: Laya.HTMLCanvas = this.sprites[i].drawToCanvas(this.sprites[i].width, this.sprites[i].height, 0, 0); let canvas = htmlCanvas.getCanvas(); let context = canvas.getContext('2d'); var imageData = context.getImageData(0, 0, 128, 128);请问该如何从canvas里获取captureScreen需要的ima...

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

1428. 设置旋转特效后,旋转对象的位置跑偏了 [ 53%]

...id{             //             xuanzhuan.pivot(xuanzhuan.width/2,xuanzhuan.height/2);                       Laya.timer.frameLoop(1,this,onLoopRotation,[this.xuanzhuan]);         }         private function onLoopRotation(sp:Sprite):void         {  ...

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

1429. HTMLDivElement中图文混排怎么获取实际内容大小 [ 53%]

...ML="<img src='res/image/1.png' />"; console.log("size: " + imageHtml.width + ", " + imageHtml.height); console.log("contextSize: " + imageHtml.contextWidth + ", " + imageHtml.contextHeight); Laya.stage.addChild(imageHtml);   上述代码在Laya中运行 正确显示了 图片 控制台输出...

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

1430. 分享:如何为spine(龙骨)动画添加CLICK事件! [ 53%]

... Laya.WebGL; var mFactory; var mArmature; (function () { Laya.init(Browser.width, Browser.height, WebGL); startFun(); })(); function startFun() { mFactory = new Templet(); mFactory.on(Event.COMPLETE, this, parseComplete); mFactory.loadAni("res/spine/spineRes2/goblins.sk"); } function parseComplete()...

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