大约有 868 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0053 秒)
Laya_社区(571) Laya2.0_文档(110) Laya3.0_api(79) Laya3.0_文档(74) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...车问题 2.0中无法使用Laya.Physics.rayCast,请问是是要用this.scene.physicsSimulation.raycastFromTo来替代吗,但是这里的scene必须的是Laya.Scene3D才能使用。有没有其他的射线检查方式。 2018-09-30 1 条评论 免费帖 --> 分享 微博 QZONE 微信 没有找...
来源: Laya_社区 发布时间: 20180930
...-05-20 16:36 我unity场景中设置,代码中 this._PlayerLight = this._scene.addChild(new Laya.DirectionLight()) as Laya.DirectionLight; this._PlayerLight.color = new Laya.Vector3(0.7, 0.6, 0.6); this._PlayerLight.transform.worldMatrix.setForward(new Laya.Vector3(1, -1, 0)); this._PlayerLight.la...
来源: Laya_社区 发布时间: 20190709
...的天空盒有黑块. 在web和微信模拟器上都是正常的 var sceneUrl:string = "scene1/Conventional/scene_battle.ls"; var completeFunc = (scene)=>{ var sc = Laya.loader.getRes(sceneUrl); Laya.stage.addChild(sc); ...
来源: Laya_社区 发布时间: 20191012
...到Source后,是无法自动播放的,需要用代码进行控制。在Scene2D的属性设置面板中,增加一个自定义组件脚本。然后,将VideoNode拖入到其暴露的属性入口中。下面给出一个示例代码,实现脚本控制VideoNode: const { regClass, property } = ...
来源: Laya3.0_文档 发布时间: 20251010
...法背景透明,永远是黑色 export default class GameUI extends Laya.Scene { constructor() { super(); Config.isAlpha = true; Laya.init(480, 900); Laya.stage.bgColor = null; //加载场景文件 this.loadScene("test/TestScene.scene"); //添加3D场景 var scene = Laya.stage.addChild(new Laya.Sc...
来源: Laya_社区 发布时间: 20201021
场景directional_light,active问题 测试代码: private sysActiveScene(){ var light = this.battleScene.getChildByName("directional_light"); light.active = !light.active; TimerManager.instance.setTimeout(this.sysActiveScene,this,500); } this.sysActi...
来源: Laya_社区 发布时间: 20191012
...y 'btCollisionObject' of undefined IDE1.7.8 json图集加载问题 laya2的Scene默认是文件模式,不会生成场景类了,此时该如何获得场景内的元素 2.2.0beta4 发布微信小游戏,安卓设备加载场景黑屏 从unity导出的场景透贴和模型烘焙的灯光不显示...
来源: Laya_社区 发布时间: 20171024
...源拷贝到项目的资源目录下,那么在项目中可以直接用 `Scene3D.load()` 方法加载或预加载。 参考以下代码,因为变色太慢我们调整了速度,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/...
来源: Laya2.0_文档 发布时间: 20210715
...ncaught getUint16 error - Out of bounds 运行报错 Uncaught Can not find scene:GameView.scene undefined Cannot read property 'displayObject' of null unity5.6.3p4+工具2.0.1导出场景报错XXX can't Readable... Laya2.1.0 JS调用Java PlatformClass undefined Uncaught TypeError: Cannot read proper...
来源: Laya_社区 发布时间: 20170407
...源拷贝到项目的资源目录下,那么在项目中可以直接用 `Scene3D.load()` 方法加载或预加载。 参考以下代码,因为变色太慢我们调整了速度,效果如(图1)。 ```typescript //加载场景 Laya.Scene3D.load("res/threeDimen/scene/materialScene/Conventional/...
来源: Laya2.0_文档 发布时间: 20210715