大约有 862 项符合查询结果, 库内数据总量为 30,897 项。 (搜索耗时: 0.0072 秒)
Laya_社区(563) Laya2.0_文档(114) Laya3.0_api(79) Laya3.0_文档(72) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...反馈失败状态跟描述不符合 var resource:Array<string> = ["scene/Conventional/scene2.ls"] Laya.loader.create(resource, Laya.Handler.create(this, (success:boolean) => { console.log("3d加载完毕:" + success); }),Laya.Handler.create(this, (progress: number) => { })); 这是个...
来源: Laya_社区 发布时间: 20190626
...ender (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:16444:20) at Scene3D.__proto._renderScene (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:34333:124) at Camera.__proto.render (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:44132:9) at Scene3D.__proto.renderSubmit (file:/...
来源: Laya_社区 发布时间: 20190809
Oppo加载.ls资源错误 Laya.loader.create("res/scenes/LayaScene_game/game.ls", Laya.Handler.create(this, () => { let gameScene = Laya.loader.getRes("res/scenes/LayaScene_game/game.ls") as Laya.Scene; Laya.stage.addChild(gameScene); }, null), Laya.Handler.create(this, (progress) => { consol...
来源: Laya_社区 发布时间: 20190711
...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...
来源: Laya2.0_文档 发布时间: 20210715
...体 ```typescript //创建盒型MeshSprite3D var box: MeshSprite3D = (this.scene.addChild(new MeshSprite3D(PrimitiveMesh.createBox(1, 1, 1)))); //设置材质 var transform: Transform3D = box.transform; var pos: Vector3 = transform.position; pos.setValue(0, 5, 0); transform.position = pos; //创建...
来源: Laya2.0_文档 发布时间: 20210715
...缘也有衰减现象。 ```typescript //聚光灯 this.spotLight = this.scene.addChild(new Laya.SpotLight()); //设置聚光灯颜色 this.spotLight.color = new Laya.Vector3(1, 1, 0); //设置聚光灯位置 this.spotLight.transform.position = new Laya.Vector3(0.0, 1.2, 0.0); //设置聚光灯方...
来源: Laya2.0_文档 发布时间: 20210715
...ender (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:16444:20) at Scene3D.__proto._renderScene (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:34333:124) at Camera.__proto.render (file:///C:/LayaPro/LayaAnimator/bin/libs/laya.d3.js:44132:9) at Scene3D.__proto.renderSubmit (file:/...
来源: Laya_社区 发布时间: 20190809
...era.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果碰撞到物体 if (this.outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; cons...
来源: Laya2.0_文档 发布时间: 20210715
...era.viewportPointToRay(this.point,ray); //拿到射线碰撞的物体 this.scene.physicsSimulation.rayCast(this.ray,this.outHitResult); //如果碰撞到物体 if (this.outHitResult.succeeded) { //删除碰撞到的物体 this.text.text = "碰撞到了" + this.outHitResult.collider.owner.name ; cons...
来源: Laya2.0_文档 发布时间: 20210715
...Adpter] already exist: Object {init: } 升级Laya2.2.0报Class constructor Scene cannot be invoked without 'new'解决办法 Uncaught TypeError: Class constructor Component cannot be invoked without 'new' ClassUtils.getClass获取不到Class Uncaught 无法实例class PhysicsCollider extends Physics...
来源: Laya_社区 发布时间: 20180925