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

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

61. Cannot read property 'toDefault' of undefined报错是什么原因 [ 82%]

...riter3D.line(this.ray.origin.x, this.ray.origin.y, this.ray.origin.z, 1.0, 0.0, 0.0, 1.0, 0, -1, 0, 1.0, 0.0, 0.0, 1.0); // this.phasorSpriter3D.end(); } var Stage = Laya.Stage; var Text = Laya.Text; var Geolocation = Laya.Geolocation; var Position = Laya.Position; var Browser = Laya.Browser; var Ha...

来源: Laya_社区 发布时间: 20170323

62. laya.d3.physics.PhysicsSimulation [ 81%]

...隔时间:通过减少fixedTimeStep可增加模拟精度,默认是1.0 / 60.0。PhysicsSimulation  gravity : Vector3 获取重力。 PhysicsSimulation  maxSubSteps : int = 1物理引擎在一帧中用于补偿减速的最大次数:模拟器每帧允许的最大模拟次数,如果引擎运...

来源: Laya2.0_api 发布时间: 20190513

63. 打包native报错 [ 80%]

打包native报错 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #1e2028} p.p2 {margin: 0.0px 0.0px 0.0px 0.0px; font: 11.0px Menlo; color: #ffffff; background-color: #1e2028; min-height: 13.0px} 2019-06-18 13:34:08.458935+0800 test1[6479:65523] >&g...

来源: Laya_社区 发布时间: 20190618

64. 发布之后报错,跨域问题 [ 80%]

...Failed to load file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/res/atlas/comp.atlas: Cross origin requests are only supported for protocol schemes: http, data, chrome, chrome-extension, https. Access to Image at 'file:///Users/dongxiang/Documents/saolei/release/layaweb/v1.0.0/comp/cl...

来源: Laya_社区 发布时间: 20180315

65. 游戏在后台放置一段时间(大约一两个小时后)会黑屏,然后要等好长的一段时间才响应过来,我看log此时JS逻辑都没跑了。 苹果虽然不会黑屏,但画面会不动,失去响应,过一段时间JS逻辑才跑起来。 [ 79%]

...动,失去响应,过一段时间JS逻辑才跑起来。 p.p1 {margin: 0.0px 0.0px 0.0px 0.0px; line-height: 19.0px; font: 13.0px 'Helvetica Neue'; color: #000000} 游戏在后台放置一段时间(大约一两个小时后)会黑屏,然后要等好长的一段时间才响应过来,我看l...

来源: Laya_社区 发布时间: 20190609

66. JavaScript heap out of memory,ide编译不了代码 [ 79%]

...0C8] 319470 ms: Mark-sweep 982.8 (1183.0) -> 971.7 (1172.4) MB, 632.9 / 0.0 ms allocation failure GC in old space requested [8912:005A00C8] 320150 ms: Mark-sweep 971.7 (1172.4) -> 971.6 (1173.9) MB, 680.1 / 0.0 ms allocation failure GC in old space requested [8912:005A00C8] 320845 ms: Mark-swe...

来源: Laya_社区 发布时间: 20191225

67. Point Light不能导出? [ 78%]

...08, 0.7352941); pointLight.transform.position = new Laya.Vector3(0.4, 0.4, 0.0); pointLight.attenuation = new Laya.Vector3(0.0, 0.0, 3.0); pointLight.range = 3.0; 2017-12-19 0 4 分享 微博 QZONE 微信 Faith_mkx 赞同来自: 那我调效果岂不是很痛苦, 调个位置,要改下代码,...

来源: Laya_社区 发布时间: 20171219

68. 2.0.0编译报错Cannot find global type 'Array' [ 78%]

2.0.0编译报错Cannot find global type 'Array' 原先是用 laya2.0.0beta5版本,升级了laya2.0.0之后,同一个项目出现了部分人员出现编译报错问题。 大家都统一用了 layaAir 2.0.0IDE 正式版,类库也是用 2.0.0正式版。   [17:08:23] Starting 'compile'... ...

来源: Laya_社区 发布时间: 20190128

69. 3D灯光与阴影 · LayaAir3.0文档 · LAYABOX [ 76%]

...ointLight); //点光源的颜色 pointCom.color = new Laya.Color(1.0, 0.5, 0.0, 1); //设置点光源的范围 pointCom.range = 3.0; pointLight.transform.position = new Laya.Vector3(0.0, 1, 0.0); 三、DirectionLight Direction Light(平行光)与点光区别较大,它有固定的一个方向...

来源: Laya3.0_文档 发布时间: 20240624

70. 分享一个Shader版的CoolDown实现 [ 76%]

...);\                 float angle = -degrees(atan(pos.x, pos.y)) + 180.0;\                 float fa = radians(angle - progress * 360.0) * radius + 1.0;\                 fa = clamp(fa, 0.0, 1.0);\                 vec4 t_color = texture2D(texture, v_texcoord); \       ...

来源: Laya_社区 发布时间: 20170606