大约有 895 项符合查询结果, 库内数据总量为 31,625 项。 (搜索耗时: 0.0221 秒)
Laya_社区(518) Laya_示例(65) Laya3.0_api(65) Laya2.0_api(62) Laya2.0_文档(60) laya_api(57) Laya2.0_示例(51) Laya3.0_文档(17)
...认的模型名称。 ```typescript //初始化3D场景 var scene = Laya.stage.addChild(Laya.Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")); //获取球型精灵 var sphere = scene.getChildByName("Sphere"); //获取精灵的mesh var sphereMesh = sphere.meshFilter.sha...
来源: Laya2.0_文档 发布时间: 20210715
...生了偏移,unity中不会 //添加3D场景 var scene:Scene3D = Laya.stage.addChild(new Scene3D()) as Scene3D; //添加照相机 var camera:Camera = (scene.addChild(new Camera(0, 0.1, 100))) as Camera; camera.transform.translate(new Vector3(0, 10, 0)); camera.transform.rotate(new Vector3(-...
来源: Laya_社区 发布时间: 20190417
... var scene:Scene = new Scene(); Laya.stage.addChild(scene); //添加照相机 var camera:Camera = (scene.addChild(new Camera( 0, 0.1, 100))) as Camera; camera.transform.trans...
来源: Laya_社区 发布时间: 20180116
...为没有一系列的加载回调,所以这一行一定会执行。 Laya.stage.on(Laya.Event.RESIZE, this, Laya.Utils.fitDOMElementInArea, [videoElement, reference, 0, 0, reference.width, reference.height]); 3) 而你的代码里并不会执行这一行,你完全拷贝示例代码,会发现是...
来源: Laya_社区 发布时间: 20200703
...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint...
来源: Laya2.0_文档 发布时间: 20210714
...模型名称。 ```typescript //初始化3D场景 var scene:Scene3D = Laya.stage.addChild(Loader.getRes("res/threeDimen/scene/ChangeMaterialDemo/Conventional/scene.ls")) as Scene3D; //获取球型精灵 var sphere:MeshSprite3D = scene.getChildByName("Sphere") as MeshSprite3D; //获取精灵的mesh v...
来源: Laya2.0_文档 发布时间: 20210714
...对应的3D世界的路径数据 ```typescript //监听鼠标抬起 Laya.stage.on(Laya.Event.MOUSE_UP, this, function() { this.index = 0; //获取每次生成路径 this.getGridIndex(this.path[this.curPathIndex % this.pointCount].x, this.path[this.curPathIndex++ % this.pointCount].z, this.startPoint...
来源: Laya2.0_文档 发布时间: 20210715
...对应的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
...发起获得最短路径的调用: //设置鼠标弹起事件响应 Laya.stage.on(Event.MOUSE_UP, this, function (): void { //起始和目标点 var start = this.graph.grid[this.startPoint.x][this.startPoint.y]; var end = this.graph.grid[this.endPoint.x][this.endPoint.y]; //调用A* serach方法...
来源: Laya3.0_文档 发布时间: 20230303
...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