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

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

631. 寻路系统(ActionScript-3D基础(AS3)-LayaAir3D之高级应用) [ 46%]

...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Event.MOUSE_UP, this, function():void { index = 0; //获取每次生成路径 getGridIndex(path[curPathIndex % pointCount].x, path[curPathIndex++ % pointCount].z, startPoint); getGridIndex(path[nextPathIndex % pointCou...

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

632. video在安卓手机上,怎么设置同层播放,还有怎么设置隐藏控制播放按钮 [ 46%]

...OMElementInArea设置Video的位置,对齐的位置和refence重合 Laya.stage.on(Event.RESIZE, this, Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); }   2018-03-13 添加评论 免费帖 --> 分享 微博 QZONE 微信 没有找到相关结果 已...

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

633. laya.d3.core.scene.Scene [ 46%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  enableDepthFog : BooleanScene  enableFog : Boolean 获取是否允许雾化。 Scene  enableLight : Boolean = true 是否启用灯光。Scene filt...

来源: laya_api 发布时间: 20170929

634. laya.ui.Dialog [ 45%]

...读]是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node displayHeight : Number[read-only] 对象的显示高度(以像素为单位)。 Sprite displayWidth : Number[read-only] 对象的显示宽度(以...

来源: Laya2.0_api 发布时间: 20190513

635. laya.d3.core.scene.BaseScene [ 45%]

...lean是否已经销毁。对象销毁后不能再使用。Node displayedInStage : Boolean[read-only] 表示是否在显示列表中显示。Node  enableDepthFog : BooleanBaseScene  enableFog : Boolean 获取是否允许雾化。 BaseScene  enableLight : Boolean = true 是否启用灯光。Bas...

来源: laya_api 发布时间: 20170422

636. 无法触发浏览器文件上传框 [ 45%]

...utton.labelSize = 12; button.labelColors = '#000000,#000000,#000000'; Laya.stage.addChild(button); return button; } private onClick(): void { // 触发浏览器文件上传框 let fileInput = Laya.Browser.document.getElementById('file'); fileInput.click(); console.log(fileInput);//input#file } } new...

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

637. 我浏览在线文档 关于共享材质和自身材质的代码 貌似没有什么不同? [ 45%]

.../添加3D场景----------------------- this.scene = new Laya.Scene(); Laya.stage.addChild(this.scene); //方法一:直接异步加载 // var mesh:Laya.Mesh = Laya.Mesh.load("LayaScene_01/Assets/model/loveScene_jianzhu.lm"); // var meshSprite3D:Laya.MeshSprite3D = new Laya.MeshSprite3D(mesh); //方...

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

638. videoNode在安卓上不能播放 [ 44%]

...了您demo中的部分代码:     onAwake(): void {         Laya.stage.on(Laya.Event.MOUSE_DOWN, () => {             Laya.loader.load("resources/916.mp4").then(() => {                 this.play();             });         })     }同时建议您将“项目设...

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

639. 使用百度地图显示当前位置(JavaScript-LayaAir基础篇(JS)-硬件设备相关) [ 44%]

...er.document.body.appendChild(mapDiv); // 适应窗口尺寸 refit(); Laya.stage.on(Laya.Event.RESIZE, this, refit); // 初始化地图 map = new BMap.Map(mapDiv); // 禁用部分交互 //map.disableDragging(); map.disableKeyboard(); map.disableScrollWheelZoom(); map.disableDoubleClickZoom(); map....

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

640. 射线检测报错,outHitInfo.sprite3D=null; [ 44%]

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