• 首页
  • 动态
  • 案例
  • 引擎社区
  • API
  • 文档
  • 示例
  • 引擎下载

大约有 248 项符合查询结果, 库内数据总量为 30,724 项。 (搜索耗时: 0.0040 秒)

101. 如何修改场景的全局光照 [ 76%]

...要修改场景中所有精灵材质的反射率颜色为 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

102. 请问2.0射线到底如何使用呢? [ 76%]

...类,但下面这么用一直没有东西,求指点 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

103. 求助 Uncaught SyntaxError: Unexpected identifier [ 75%]

... = 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

104. texture2D的setPixel纹理rgba数据之后会随着窗口的缩放,渐变成黑色 [ 75%]

...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

105. 3D场景-地形场景 [ 75%]

...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_示例 发布时间: 20240930

106. Laya多点触控是有开关吗 为什么多点触控没有任何反应 [ 75%]

...  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

107. U3D场景导不出,出现以下问题。求帮忙导出!!!!! [ 75%]

...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

108. 3d中 缓动往一个点转向并移动的问题 [ 75%]

...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

109. LayaRender问题 Matter在LayaRender下出现不正常问题 [ 74%]

...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

110. 3D阴影无法渲染出来 [ 74%]

...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