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

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

1461. dialog里面的内容怎么不能添加到舞台 [ 70%]

... = new Laya.Sprite(); //添加到舞台上 console.log(self.foodBox); Laya.stage.addChild(self.foodBox); // Laya.stage.addChildAt(foodBox,self); self.foodBox = self.fooddata; console.log(self.foodBox); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀...

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

1462. 3D场景跳转到2D场景问题 [ 70%]

...rent); //创建胜利的UI界面 let victoryScene=new VictoryScene(); Laya.stage.addChild(victoryScene);   this.isDelete=true;  // console.log(Scene3DControl.GameSceneB);   } }结束界面跳转到3D场景 import {VictorySceneUI} from '../ui/layaMaxUI' import GameScene from './GameScene'; export ...

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

1463. 飞机大作战demo中,想给主角飞机(hero)添加事件,怎么做 [ 70%]

...给主角飞机(hero)添加事件,怎么做 demo中的事件都是给stage添加的,stage.on()之类的,因为主机飞机(hero)都是用Role()类去构造的,添加事件应该怎么做 2018-06-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

1464. 缓动动画(TypeScript-LayaAir基础篇(TS)-动画基础) [ 70%]

...() { //初始化舞台 Laya.init(1334,750,Laya.WebGL); //背景颜色 Laya.stage.bgColor = "#1b2436"; //创建缓动文本 this.createTween(); } //创建缓动文本 private createTween():void{ //"LayaBox字符串总宽度" var w:number = 800; //文本创建的起始位置(>>在此使用右移运算...

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

1465. LayaAir2.13.0 面板获取物体 代码获取该物体上的脚本 [ 70%]

... 提交 2 个回复 时光123 赞同来自: 已经解决了,调试发现stage下的child数量为0 ,所以不能通过laya.stage获取。 要用owner.parent.getChildByname 2022-08-04 0 0 分享 微博 QZONE 微信 Laya_Fred 赞同来自: 您好,我们这里按照您说的方式获取物体并...

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

1466. 小游戏如何在iphone x下真正全屏 [ 70%]

...e x下真正全屏 游戏开发使用: Laya.init(750, 1334, WebGL); Laya.stage.scaleMode = Stage.SCALE_SHOWALL; 如果在iphone x下让游戏全屏不变形? 2018-08-03 添加评论 已悬赏20元 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 ...

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

1467. radioGroup设置labels后,每个radio的icon皮肤无法显示了 [ 70%]

...景代码里: var dialog = new QuestionDialogUI();          Laya.stage.addChild(dialog);          dialog.popup();          dialog.btn_question_dialog_next.on(Laya.Event.CLICK, this, onNext); dialog.radioGroup_question.labels = "如果资源未加载,则先加载资源,\...

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

1468. laya.ui.HScrollBar_API3.0 [ 70%]

...rollBar_Example() { Laya.init(640, 800);//设置游戏画布宽高。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/hscroll.png", "resource/ui/hscroll$bar.png", "resource/ui/hscroll$down.png", "resource/ui/hscroll$up.png"], Handler.create(this, onLoad...

来源: Laya3.0_api 发布时间: 20231115

1469. laya.ui.VScrollBar_API3.0 [ 70%]

...() { Laya.init(640, 800);//设置游戏画布宽高、渲染模式。 Laya.stage.bgColor = "#efefef";//设置画布的背景颜色。 Laya.loader.load(["resource/ui/vscroll.png", "resource/ui/vscroll$bar.png", "resource/ui/vscroll$down.png", "resource/ui/vscroll$up.png"], Handler.create(this, onLoad...

来源: Laya3.0_api 发布时间: 20231115

1470. 引擎示例中的错误 [ 70%]

...layaair2.ldc2.layabox. ... DForm 1、constructor里的最后一行: Laya.stage.on(Laya.Event.RESIZE, this, this.fitDOMElements, [emailInput, birthdayInput, passwordInput]); 当stage调整尺寸时,对3个input位置进行调整,当初次运行时,3个input框排在网页左上角,必须手...

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