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

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

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

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

412. Button和下面的3D物体重叠,点击button,3D物体会同时响应自己的鼠标脚本 [ 62%]

... true ,接收鼠标点击 onAwake() { this.isClick = false; //对舞台stage添加点击事件(这里由于有scene的缘故,点击空白处返回的对象是scene) Laya.stage.on(Laya.Event.CLICK,this,function(e) { if(e.target.name == "scene的名字") { this.isClick = true; //如果点击...

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

413. 为什么会出现报错 ani not found:ufo1_down [ 62%]

...动的悲剧 this.bg = new BackGround(); // 把背景添加到舞台 Laya.stage.addChild(this.bg); // 加载图集资源 Laya.loader.load("res/atlas/war.json",Laya.Handler.create(this,onLoaded),null,Laya.Loader.ATLAS); })(); function onLoaded(){ // 创建一个主角 this.hero = new Role(); // 初...

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

414. 关于mouseThough=true的问题 [ 62%]

...18-03-14 15:50 public function LateTest() { Laya.init(400,400,WebGL); Laya.stage.bgColor = "#ff0000"; // trace(Laya.timer.toString()); // Laya.timer.callLater(this,onLater); // trace(Laya.timer.toString()); var assets:Array = []; assets.push({url:[ "fish_6.png" ],type:Loader.IMAG...

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

415. Laya.MovieClip() new的时候崩溃了,在线等,很急!!!! [ 61%]

...a.MovieClip(); this.swfAni.load(strSWF,true,strImg); this.swfAni.x = (Laya.stage.width -1900) / 2; this.swfAni.y = (Laya.stage.height - 1200) / 2; this.swfAni.zOrder = 3; this.swfAni.loop = false; this.swfAni.play(0,false); this.swfAni.visible = true; this.swfAni.on(laya.events.Event.COMPLETE, this,...

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

416. 如何能监听到TouchStart和TouchEnd事件 [ 61%]

...相关的链接 提交 2 个回复 189*****192 赞同来自: Sean8023 Laya.stage.on(Event.MOUSE_UP, this, onApeRelease); Laya.stage.on(Event.MOUSE_DOWN, this, onApeRelease); 通过 Event  类型 监听动作  class Event {         /** 一个空的 Event 对象。用于事件派发中转使...

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

417. 怎么给List下的每个item中的button添加事件? [ 61%]

...18-09-12 17:22 var btns = new Array; this.btnBox = new Laya.Sprite(); Laya.stage.addChild(this.btnBox); for(var i = 0; i < 5; i++){ var btn = new Laya.Sprite(); btn.loadImage("Key.jpg",i*100,800,100,60); btn.id= i; btns.push(btn); this.btnBox.addChild(btn); console.log(btn.id); } for(va...

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

418. replaceSlotSkinName对于spine换肤不成功 [ 61%]

...ildArmature(1); skeleton0.pos(200,700); skeleton0.showSkinByIndex(1); Laya.stage.addChild(skeleton0); skeleton0.replaceSlotSkinName("head","goblin/head","goblingirl/head"); skeleton0.play("walk",true,true,0,0,true); } } new GameMain();   2018-01-26 添加评论 免费帖 --> 分享 微博 QZONE 微...

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

419. 2.0label不改变文本内容,label颜色无法直接改变,1.0可以 [ 61%]

...           this.label.zOrder=9980             Laya.stage.addChild(this.label);             this.label.visible = false;             this.OpenLabel();         }         private OpenLabel() {             this.label.visible = tru...

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

420. Cannot read property 'props' of undefined [ 60%]

...      //加载完成获取到了Scene3d             Laya.stage.addChild(scene);         })); 附件 : --> LayaScene_Map.zip 2020-07-07 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_...

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