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

大约有 1,440 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0053 秒)

651. 2.3微信截图分享问题 [ 75%]

...0, destHeight: 100, fileType: 'jpg', quality: 1.0 });   var canvas = Laya.stage.drawToCanvas(Laya.stage.width, Laya.stage.height, 0, 0).getCanvas();   这是第二种写法。翻了几次论坛据说已经用不了。而且drawToCanvas返回的HtmlCanvas 也没getCanvas()方法。 那么现在的2...

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

652. laya.sprite 不接受click事件 [ 75%]

...this._firstSprite= new Laya.Sprite(); this._firstSprite.pos(100,150); Laya.stage.addChild(this._firstSprite); this._firstSprite.loadImage('../laya/assets/image/0.jpg'); //this._firstSprite.scale(0.3,0.3); this._firstSprite.size(200,200); //this._firstSprite.pivotX = 0;//设置 sprite 对象的水平...

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

653. [LayaAir2]在使用videoDom创建视频元素后iPad跟iPhone中位置不一样 [ 75%]

...rt default class VideoDom { htmlvideo:Laya.HtmlVideo; constructor() { Laya.stage.on(Laya.Event.CLICK,this,this.onClick); } onClick(){ this.initVideo(); } initVideo() { this.htmlvideo = new Laya.HtmlVideo(); this.htmlvideo.setSource("https://www.layaair.com/3.x/de ... ot%3B,1); this.htmlvideo.video.a...

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

654. MovieClip加载错误抛什么事件? [ 74%]

...法继续。 package { import laya.ani.swf.MovieClip; import laya.display.Stage; import laya.events.Event; import laya.webgl.WebGL; public class MouseCount { public function MouseCount() { Laya.init(720, 1280, WebGL); Laya.stage.alignV = Stage.ALIGN_MIDDLE; Laya.stage.alignH = Stage.ALIGN_CENTER; La...

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

655. 向stage下的scene里添加物体时报错 [ 74%]

stage下的scene里添加物体时报错   附件 : --> car2d.zip 2022-08-09 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 151*****309 赞同来自: 你回收预制体为什么要回收一个脚本 改成下...

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

656. 分享:为List组件下Item(Box)下的Button(或其他组件)进行监听! [ 74%]

...了第:"+index+"个btn"); } //初始化引擎 Laya.init(600, 400); Laya.stage.bgColor='#EEFFCC'; Laya.loader.load("res/atlas/comp.json", Handler.create(this, onAssetLoaded), null, Loader.ATLAS); //添加UI界面 function onAssetLoaded() { Laya.stage.addChild(new TestUI()); } 附件 : --> ButtonCli...

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

657. 设置滤镜(ActionScript-LayaAir基础篇(AS3)-位图) [ 74%]

...下: ```java package { import laya.display.Sprite; import laya.display.Stage; import laya.filters.ColorFilter; import laya.resource.Texture; import laya.utils.Browser; import laya.utils.Handler; import laya.webgl.WebGL; public class Main { private const ApePath:String = "res/img/monkey1.png"; priv...

来源: Laya2.0_文档 发布时间: 20210715

658. 为什么Tiledmap总是显示于stage的图片之上? [ 74%]

为什么Tiledmap总是显示于stage的图片之上? 为什么Tiledmap总是显示于Laya.stage的图片之上 2017-02-24 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 2 个回复 cuixueying 赞同来自: hamletborn 你...

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

659. TimeLine调用destroy报错&执行完成后回到起点 [ 74%]

...to.run (HMain.max.js:9196) at Timer.__proto._update (HMain.max.js:8951) at Stage.__proto.render (HMain.max.js:16932) at Stage.__proto._loop (HMain.max.js:16892) at loop (HMain.max.js:5472)    private function createTimerLine():void { timeLine.addLabel("turnRight",0).to(target,{x:450, y:100, scaleX...

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

660. 添加舞台事件问题? [ 74%]

添加舞台事件问题? this.addEventListener(Event.ADDED_TO_STAGE, addtoStageHandler); as3的添加舞台事件,Laya有木有类似的事件啊? 2017-03-25 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 ...

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