大约有 6,579 项符合查询结果, 库内数据总量为 31,560 项。 (搜索耗时: 0.0114 秒)
Laya_社区(5232) Laya3.0_api(482) Laya2.0_文档(363) Laya_示例(154) Laya2.0_示例(116) Laya3.0_文档(101) Laya2.0_api(67) laya_api(64)
...id { KeyBoardManager.hasKeyDown(87) && kinematicSphere.transform.translate(new Vector3(0, 0, -0.2));//W KeyBoardManager.hasKeyDown(83) && kinematicSphere.transform.translate(new Vector3(0, 0, 0.2));//S KeyBoardManager.hasKeyDown(65) && kinematicSphere.transform.translate(new Vector3(-0.2, 0, 0));//A...
来源: Laya2.0_文档 发布时间: 20210715
...0, 0, 1, 0 // A ]; //创建一个颜色滤镜对象,红色 let redFilter = new ColorFilter(redMat); // 红色的猩猩 let redApe = this.createApe(); redApe.filters = [redFilter]; let firstChild = Laya.stage.getChildAt(0); redApe.x = firstChild.x + apeTexture.width; redApe.y = firstChild.y; } grayin...
来源: Laya2.0_示例 发布时间: 20251130
...D.getChildByName("DirectionalLight") as Laya.DirectionLight; light.color = new Laya.Vector3(1, 1, 1); light.shadow = true; light.shadowDistance = 1; light.shadowPCFType = 3; light.shadowResolution = 1024; light.shadowPSSMCount = 1; for (let index = 0; index < 2; index++) { var a = 0.05; var b = 0...
来源: Laya_社区 发布时间: 20191223
...KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translat...
来源: Laya2.0_文档 发布时间: 20210715
...9"; //实例一个背景 var bg = new Image(); bg.skin = "res/img/loadingBg.jpg"; Laya.stage.addChild(bg); //实例一个文本 this.txt = new Text(); this.txt.text =...
来源: Laya2.0_文档 发布时间: 20200307
...Laya.stage.scaleMode = Laya.Stage.SCALE_FULL; //创建场景 var scene = new Laya.Scene(); Laya.stage.addChild(scene); //创建摄像机 var camera = new Laya.Camera(); scene.addChild(camera); camera.transform.localPosition = new Laya.Vector3(0,4,10); //载入并显示3D建筑 var map = Laya.Sprit...
来源: Laya_社区 发布时间: 20170524
...KeyBoardManager.hasKeyDown(87) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, -0.2));//W Laya.KeyBoardManager.hasKeyDown(83) && this.kinematicSphere.transform.translate(new Laya.Vector3(0, 0, 0.2));//S Laya.KeyBoardManager.hasKeyDown(65) && this.kinematicSphere.transform.translat...
来源: Laya2.0_文档 发布时间: 20210714
...nitView(){ // 加载并添加场景中需要使用的资源 this.baseBox = new Box(); this.baseBox.width = 443; this.baseBox.height = 622; this.baseBox.pos(30, 28); this.baseBox.bgColor = "#ffffff"; // 加载进度条 this.refreshLoading = new Box(); this.refreshLoading.pos(133, 0); this.refreshLoad...
来源: Laya2.0_示例 发布时间: 20251130
..., 1, 0, //A ]; //创建红色颜色滤镜 var redFilter:Laya.ColorFilter = new Laya.ColorFilter(colorMatrix); ``` 最后通过Spriter的filters属性将颜色滤镜效果叠加到位图中。下面我们创建一个Main.ts类,编写代码如下: ```typescript module laya { import Sprite = Laya.S...
来源: Laya2.0_文档 发布时间: 20210715
...e); //创建摄像机(横纵比,近距裁剪,远距裁剪) var camera= new Laya.Camera( 0, 0.1, 1000); //添加方向光 var directionLight = scene.addChild(new Laya.DirectionLight()); directionLight.ambientColor = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.specularColor = new Laya.Vector3(...
来源: Laya_社区 发布时间: 20180108