大约有 3,085 项符合查询结果, 库内数据总量为 31,629 项。 (搜索耗时: 0.0057 秒)
Laya_社区(2355) Laya2.0_文档(237) Laya_示例(147) Laya2.0_示例(117) Laya3.0_api(70) Laya2.0_api(64) laya_api(59) Laya3.0_文档(36)
...let video = this.scene.getChildByName('VideoNode') as Laya.VideoNode; Laya.stage.on(Laya.Event.MOUSE_DOWN,this, ()=>{ console.error('Laya.Event.MOUSE_DOWN'); video.play(); }); 很简单的结构,只有在微信上播放不了 1677851971用户 • 2024-03-16 19:56 测试可以播放了,就是...
来源: Laya_社区 发布时间: 20230825
...1-16 16:35 但是横竖屏不是在截图上已经看到了么,laya中有stage.screenMode, android 中已有screenOrientation="portrait" 项目 链接: https://pan.baidu.com/s/1eStShyi 密码: kq6d 主要为导出android studio 做二次开发用。 Hatt • 2017-11-15 16:52 标题已...
来源: Laya_社区 发布时间: 20171115
.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...
来源: Laya2.0_文档 发布时间: 20210715
.../Conventional/SceneMonkey.ls",Laya.Handler.create(this,function(res){ Laya.stage.addChild(res); //用于挂点的精灵 var box = new Laya.MeshSprite3D(Laya.PrimitiveMesh.createBox(1,1,1)); var material = new Laya.BlinnPhongMaterial(); Laya.Texture2D.load("res/layabox.png", Laya.Handler.create(this,...
来源: Laya2.0_文档 发布时间: 20210714
...Laya.Vector3.ZERO); this.phasorSprite3D = new Laya.PhasorSpriter3D(); Laya.stage.on(Laya.Event.MOUSE_DOWN,this,this.onMouseDown); } private onMouseDown():void{ this.camera.viewportPointToRay(new Laya.Vector2(Laya.MouseManager.instance.mouseX,Laya.MouseManager.instance.mouseY),this.ray); Laya.Physi...
来源: Laya_社区 发布时间: 20181020
....onResReady)); } private onResReady() { let panel = new Laya.Panel(); Laya.stage.addChild(panel); panel.graphics.drawRect(0, 0, 300, 300, "#ffcccc"); panel.width = 300; panel.height = 300; panel.pos(200, 300); let image = new Laya.Image(); image.skin = "comp/image.png"; image.pos...
来源: Laya_社区 发布时间: 20211108
...und没有声音 设置遮罩会导致内存大大增高 使用Laya3Dinit和Stage裁切模式导致按钮判定区偏移 laya2.0调用scene.gc方法,再次加载同一份资源时候,会导致gpu内存不断增加! iOS 重新初始化引擎 问题状态 最新活动: 2020-11-26 15:50 浏览: 12...
来源: Laya_社区 发布时间: 20180420
....body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Event.RESIZE, this, refit); // 初始化地图 map = new BMap.Map(mapDiv); // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom()...
来源: Laya2.0_文档 发布时间: 20210715
...{ trace("加载成功"); var c:Image = new Image("rank/country.png"); Laya.stage.addChild(c); } 以上是子域项目中加载图集和取资源的代码。代码是参照 https://ask.layabox.com/question/15086 这个帖子的。 图集加载是ok的,但是这样new Image("rank/country.png");...
来源: Laya_社区 发布时间: 20180830
...ional/SceneMonkey.ls",Handler.create(this,function(res:Scene3D):void{ Laya.stage.addChild(res); //用于挂点的精灵 var box: MeshSprite3D = new MeshSprite3D(PrimitiveMesh.createBox(1,1,1)); var material: BlinnPhongMaterial = new BlinnPhongMaterial(); Texture2D.load("res/layabox.png", Handler.cre...
来源: Laya2.0_文档 发布时间: 20210714