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

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

521. 动画无法添加到舞台问题 [ 76%]

...(-this.bound.width/2,-this.bound.height/2);//设置动画位置 Laya.stage.addChild(this.LeadBody);   上面是代码 2018-03-03 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 Laya_XS 赞同来自: 你的play参...

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

522. 鼠标事件能否在有图形的区域感应,特别是子项坐标为负数时(已经找到问题) [ 76%]

...500,500,"#fff0cc"); testPan = new Sprite(); testPan.name = "testPan"; this.addChild( testPan ); testPan.pos( 300,300); testPan.graphics.drawRect(0,0,90,100,"#faaff0"); testPan.on(Event.CLICK,this,onMouseClick); testPan.width = 90; testPan.height = 100; var mcSp:Sprite = new Sprite(); mcSp.graphics.d...

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

523. 没有预加载的图片怎么获取width和height ? [ 76%]

...    older.loadImage("../laya/assets/comp/image.png");     Laya.stage.addChild(older);     console.log(older.scaleX,older.scaleY,older.rotation,older.x,older.y, older.width,older.height,older.getBounds().width,older.getBounds().height);      older.scale(2,2);     console.log(older.s...

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

524. 文本-单行输入 [ 75%]

...nput() { const Input = Laya.Input; var inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; // 移动端输入提示符 inputText.prompt = "Type some word..."...

来源: Laya2.0_示例 发布时间: 20251209

525. 水平滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/hscroll.png", "atlas/comp/hscroll$bar.png", "atlas/comp/hscroll$down.png", "atlas/comp/hscroll$up.png"); Laya.loader.load(skins).then...

来源: Laya3.0_文档 发布时间: 20251010

526. 垂直滚动条组件 · LayaAir3.3 · 引擎文档 · LAYABOX [ 75%]

...本组件 this.text = new Laya.Text(); this.text.pos(300, 260); this.owner.addChild(this.text); // 滚动条皮肤资源 var skins: any[] = []; skins.push("atlas/comp/vscroll.png", "atlas/comp/vscroll$bar.png", "atlas/comp/vscroll$down.png", "atlas/comp/vscroll$up.png"); Laya.loader.load(skins).then...

来源: Laya3.0_文档 发布时间: 20251010

527. 循环添加一组按钮事件无法正常使用 [ 75%]

...          b.name = "egg"+i;                 Laya.stage.addChild(b);                 b.on(Event.MOUSE_DOWN, this, mouseHandler);                 b.on(Event.MOUSE_MOVE, this, mouseHandler);                 b.on(Event.MOUSE_UP, this, mouseHandler);...

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

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

..."Arial"; this.txtName.bold = true; this.txtName.align = "left"; Laya.stage.addChild(this.txtName); //设置其他玩家角色名称跟随角色模型 var currPosition2:Laya.Vector3 = new Laya.Vector3(this._position.x, 5, this._position.z); this.otherGameScene.viewport.project(currPosition2,this.othe...

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

529. 鼠标事件:为什么没有设置穿透,也会发生穿透现象? [ 75%]

...= CreateObj.createSprite(McUrlMgr.LOAD_BG_Path);             this.addChild(bg);             bg.x = 0;             bg.y = 0;                          var bg2:Sprite = CreateObj.createSprite(McUrlMgr.LOAD_BG_Path);             bg2.x = 0;      ...

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

530. 文本-禁止编辑 [ 75%]

...nput() { const Input = Laya.Input; let inputText = new Input(); Laya.stage.addChild(inputText); inputText.size(350, 100); inputText.x = Laya.stage.width - inputText.width >> 1; inputText.y = Laya.stage.height - inputText.height >> 1; inputText.text = "这段文本不可编辑,但可复制"; inputT...

来源: Laya2.0_示例 发布时间: 20251209