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

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

391. 按照视频教程popup为什么没有底层的透明遮盖层啊? [ 64%]

...   var aDia:aDialog = new aDialog("登陆");   aDia.popup(true);   Laya.stage.addChild(aDia); })   附件 : --> 2017-12-17 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已邀请: 与内容相关的链接 提交 1 个回复 wudi199553 赞同来自: Laya.stage.add...

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

392. 我竟然被射线检测这个小功能给难了一天了 [ 64%]

...era") as Laya.Sprite3D).transform.position) } onStart(): void {     Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDownCb) } private onMouseDownCb(e:Laya.Event):void{ console.log("点击屏幕") // console.log("相机位置",this.camera.) this.camera.viewportPointToRay(new Laya.Vector2(Laya....

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

393. 请问,如何获得StandardMaterial,为什么transformUV始终是null [ 64%]

...   对transformUV 操作毫无效果啊  Laya3D.init(0, 0, true); Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(...

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

394. 3D场景跳转到2D场景问题 [ 64%]

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

395. 引擎示例中的错误 [ 63%]

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

396. sprite 添加点击事件没反应,对sprite设置了size也没用 [ 63%]

....btn.y = 25 ; this.btn.scaleX = 25 / 75 ; this.btn.scaleY = 25 / 75 ; Laya.stage.addChild(this.btn) ; this.btn.size(25,25) ; this.btn.on(Laya.Event.CLICK, this, music.music_voice_toggle); 代码是这样的 , 图片上传不了,代码直接贴上来 2017-08-03 0 0 分享 微博 QZONE 微信 cuix...

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

397. ToolTip鼠标悬停的使用 [ 63%]

...lic function ToolTipDemo() { Laya.init(Browser.width,Browser.height); Laya.stage.bgColor="#eeffcc"; Laya.loader.load("res/atlas/comp.json",Handler.create(this,onLoaded),null,Loader.ATLAS); } private function onLoaded():void { this._testTip=new TestTipsUI();//务必在Laya.init后去new实例,不可...

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

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

...r rect=new Laya.Rectangle(-200,-200,300,300); mArmature.hitArea=rect; Laya.stage.addChild(mArmature); mArmature.on(Event.CLICK, this, onChangeSkin); mArmature.showSkinByName("goblin"); mArmature.play(0, false); mArmature.stop(); } function onChangeSkin() { console.log("执行了点击"); } })(); 附...

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

399. layabox 怎么使用 google/blockly [ 63%]

...么使用 google/blockly //初始化引擎 //Laya.init(960, 660); //Laya.stage.bgColor = "#ffffff"; var demoWorkspace:Object = Browser.window.Blockly.inject('blocklyDiv',{toolbox: Browser.document.getElementById('toolbox')}) 不创建laya舞台是直接能玩,但是不知道怎么把Blockly 生成...

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

400. TiledMap.moveViewPort(x,y) 为嘛要传入负数 [ 63%]

...    tmapsp.zOrder=1;         this.tMap.changeViewPort(-((Laya.stage.width-this.tMap.width)/2),-((Laya.stage.height-this.tMap.height)/2),this.tMap.width,this.tMap.height);         this.addChild(this.tMap.mapSprite()); 请问这是什么意思啊 2020-04-20 添加评论 免费帖 -...

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