大约有 851 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0055 秒)
Laya_社区(563) Laya2.0_文档(114) Laya3.0_api(79) Laya3.0_文档(61) Laya_示例(31) Laya2.0_api(2) laya_api(1)
...y(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/TerrainScene/XunLongShi.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 }, { url: "../../res/threeDimen/scene/TerrainScene/Assets/...
来源: Laya_示例 发布时间: 20241124
... import GameConfig from "./GameConfig"; class Main { //private scene:Laya.Scene3D; private text:Laya.Text; private _upVector3:Laya.Vector3 = new Laya.Vector3(0, 1, 0); constructor() { this._upVector3 = new Laya.Vector3(0, 1, 0); Laya3...
来源: Laya_社区 发布时间: 20190531
...w(); //预加载所有资源 var resource = [ { url: "../../res/threeDimen/scene/ColliderScene/ColliderDemo.ls", clas: Laya.Scene, priority: 1 }, { url: "../../res/threeDimen/skinModel/LayaMonkey/LayaMonkey.lh", clas: Laya.Sprite3D, priority: 1 } ]; Laya.loader.create(resource, Laya.Handler.create(t...
来源: Laya_示例 发布时间: 20241124
...法 */ export default class LoadPage { constructor(url = null) { this._loadScene = null if (url) this.preload(url) } /** * 预加载loading页面 * @param {String} url loading页面url */ async preload(url = 'loadingpage.scene') { if (this._loadScene && url === this._loadScene.url) return le...
来源: Laya_社区 发布时间: 20181124
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, fal...
来源: Laya_示例 发布时间: 20241124
this.scene.physicsSimulation.rayCastAll 报错 this.point.x = Laya.MouseManager.instance.mouseX; this.point.y = Laya.MouseManager.instance.mouseY; //产生射线 this.camera.viewportPointToRay(this.point,this.ray); /// Laya.PhysicsSimulation.rayCast(this.ray, this.outHitResult, 30, 0) //拿到...
来源: Laya_社区 发布时间: 20190523
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(new Laya.Scene()); var camera = scene.addChild(new Laya.Camera(0, 0.1, 100)); camera.transform.translate(new Laya.Vector3(0, 0.35, 1)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, fa...
来源: Laya_示例 发布时间: 20241124
...动也不动的 export default class GameUI { //宣告場景 private scene: Laya.Scene3D; private camera: Laya.Camera; private directionlight: Laya.DirectionLight; private character: Laya.Sprite3D; private monster_character: Laya.Sprite3D; private translateW: Laya.Vector3 = new Laya.Vector3(0, 0...
来源: Laya_社区 发布时间: 20200917
...Laya.Stage.SCALE_FULL; Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; var scene = Laya.stage.addChild(Laya.Scene.load("../../res/threeDimen/scene/Arena/Arena.ls")); var camera = scene.addChild(new Laya.Camera(0, 0.1, 1000)); camera.transform.translate(new Laya.Vector3(0, 0.5, 1)); camera.transform....
来源: Laya_示例 发布时间: 20241124
... //预加载所有资源 var resource = [{url: "Box/LayaScene_JJF/Conventional/JJF.lh"}]; Laya.loader.create(resource, Laya.Handler.create(this, this.onComplete)); } onComplete(){ //创建场景 var scene = Laya.stage.addChild(new Laya.Scene3D()); ...
来源: Laya_社区 发布时间: 20190605