大约有 248 项符合查询结果, 库内数据总量为 30,786 项。 (搜索耗时: 0.0040 秒)
Laya_社区(142) Laya_示例(42) Laya3.0_api(21) Laya2.0_api(17) laya_api(15) Laya2.0_文档(7) Laya3.0_文档(4)
...要修改场景中所有精灵材质的反射率颜色为 albedo = new Vector4(0.0,0.0,0.0,1.0); 方法二:可以给场景中添加方向光,把方向光的环境光颜色ambientColor = new Vector3(0.0, 0.0, 0.0); 2017-06-14 0 0 分享 微博 QZONE 微信 为什么被折叠? 0 个回复被...
来源: Laya_社区 发布时间: 20170614
...类,但下面这么用一直没有东西,求指点 this.mousePos=new Vector2(MouseManager.instance.mouseX, MouseManager.instance.mouseY); camera.viewportPointToRay(this.mousePos,ray); this.ps.rayCast(ray,this.rayCastHit,500, 0); 2018-12-20 添加评论 免费帖 --> 分享 微博 QZONE 微信 ...
来源: Laya_社区 发布时间: 20181220
... = scene.addChild(new Camera()) as Camera; camera.transform.position = new Vector3(0, 3, 3); camera.transform.rotate(new Vector3( -45, 0, 0), true, false); camera.addComponent(CameraMoveScript); // 生成平面,其实是一个box,只不过高度很小,可看成一个平面 var plane = scene.ad...
来源: Laya_社区 发布时间: 20170314
...aya.Camera(0, 0.1, 0)) as Laya.Camera; camera.transform.translate(new Laya.Vector3(0, 2, 20)); camera.transform.rotate(new Laya.Vector3(-15, 0, 0), true, false); camera.clearColor = new Laya.Vector4(0.2, 0.2, 0.2, 1.0); var directionLight = scene.addChild(new Laya.DirectionLight()) as Laya.Direction...
来源: Laya_社区 发布时间: 20220815
...ial.StandardMaterial; import laya.d3.core.scene.Scene; import laya.d3.math.Vector2; import laya.d3.math.Vector3; import laya.d3.math.Vector4; import laya.d3.resource.TextureCube; import laya.d3.resource.models.SkyBox; import laya.display.Stage; import laya.events.Event; import laya.utils.Stat; impor...
来源: Laya_示例 发布时间: 20241124
... Laya.stage.screenMode = Laya.Stage.SCREEN_NONE; this.upVector3 = new Laya.Vector3(0, 1, 0); //预加载所有资源 let resource = ["Export/LayaScene_JJF/Conventional/JJF.lh"]; Laya.loader.create(resource, Laya.Handler.create(this, ...
来源: Laya_社区 发布时间: 20190531
...a (UnityEngine.GameObject gameObject, .JSONObject node, .JSONObject child, Vector3 position, Quaternion rotation, Vector3 scale, System.String& goPath) LayaExport.DataManager.getGameObjectData (UnityEngine.GameObject gameObject, System.String gameObjectPath, .JSONObject parentsChildNodes, Boolea...
来源: Laya_社区 发布时间: 20171106
...Quaternion=new Quaternion(); var out2:Quaternion=new Quaternion(); var dir:Vector3=new Vector3() ; Vector3.subtract(transform.position,sphere3D.transform.position,dir); Quaternion.rotationLookAt(dir,Vector3.Up,out); Quaternion.slerp(transform.rotation,out, Laya.timer.delta/1000,out1); transform.rota...
来源: Laya_社区 发布时间: 20180726
...posites = Matter.Composites, Events = Matter.Events, Query = Matter.Query, Vector = Matter.Vector; var LayaRender = window.LayaRender; var Sprite = Laya.Sprite; var Stage = Laya.Stage; //var Render = Laya.Render; var Browser = Laya.Browser; var WebGL = Laya.WebGL; var stageWidth = 800; var stageHeig...
来源: Laya_社区 发布时间: 20170728
...scene.addChild(new Laya.DirectionLight()); directionLight.color = new Laya.Vector3(0.6, 0.6, 0.6); directionLight.direction = new Laya.Vector3(1, -1, 0); directionLight.shadow = true; directionLight.shadowDistance = 3; directionLight.shadowResolution = 2048; directionLight.shadowPSSMCount = 1; direc...
来源: Laya_社区 发布时间: 20170809