当前位置:网站首页>Unity切换到另一个场景的时候,发现该场景变暗了
Unity切换到另一个场景的时候,发现该场景变暗了
2022-07-28 06:33:00 【dzj2021】
一 病情描述
项目的灯光配置:
烘焙设置(不用烘焙):Window -> Rendering -> Lighting -> Scene -> [Auto Generate = false]
而且执行过【Clear Baked Data】灯光设置(实时渲染):Directional Light -> Inspector -> Light -> Mode=Realtime
发布平台:WebGL
最后的解决办法:
(Environment Lighting的Source从SkyBox改成Color):Window -> Rendering -> Lighting - Environment Lighting - Source = Color1、在Editor中设计的效果

2、在运行的时候,从别的场景跳入该场景后,该场景表现出来的效果
如下图所示,变得灰不溜秋
3、寻找问题:查看light的属性值,没有啥变化

4 把灯的instensity从1调到2的时候,感觉恢复了亮度

二、相关参考帖子
参考Unity论坛有一个相关帖子
连接:https://forum.unity.com/threads/solved-scenemanager-loadscene-make-the-scene-darker-a-bug.542440/
可能的原因
- 1、这是一个bug
- 2、其它
三、网友的解决办法(修改后重新发布没有解决问题)

这个办法不可行,场景依旧是暗的
四、试验
项目有2个场景:【主页(主要是2D交互UI)】、【3D场景(3D物体的场景)】
- 情况1【亮度正常】:build的时候,打开的是【3D场景】,build成wegGL后,从其它场景进入【3D场景】后,该场景光照亮度正常。
- 情况2【亮度黑暗】:build的时候,打开的是【主页】,build成wegGL后,从【主页】进入【3D场景】后,该场景光照亮度不正常。
- 情况3【亮度正常】:
(1)(Environment Lighting的Source从SkyBox改成Color):Window -> Rendering -> Lighting - Environment Lighting - Source = Color
(2)无论用【情况1】还是【情况2】的Build方法,切换场景后亮度都正常。
五… ?
…
…
…
边栏推荐
- After being accidentally dragged into QQ fraud group
- Draw.io image saving path settings
- MCU IO port controls 12V voltage on and off, MOS and triode circuit
- A group of South University students rely on science and technology to go to sea, with an annual income of 1billion
- Opentsdb time series database
- Melt cloud x chat, create a "stress free social" habitat with sound
- @Documented 的作用
- Talk about synchronous, asynchronous, blocking and non blocking
- The core packages and middleware required for golang development cover all areas of the project and are worth collecting
- js卡片层叠样式的图片切换js特效
猜你喜欢

Es6: template string

Opencv's practical learning of credit card recognition (4)
![[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6](/img/08/b892bd6c14d5ba3691f9b7def29c35.png)
[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6

sql server时间字段排序

CarSim simulation quick start (10) - Modeling of braking system

Deep browser rendering principles

【17】 Establish data path (upper): instruction + operation =cpu
![[Qt5] small software with 5 people randomly selected from the bid evaluation expert base](/img/ca/9f6bd6af45e2113c050edf3a65aaf2.png)
[Qt5] small software with 5 people randomly selected from the bid evaluation expert base

Huawei Senior Engineer -- BGP routing filtering and community attributes

对spark算子aggregateByKey的理解
随机推荐
“蔚来杯“2022牛客暑期多校训练营2补题记录(DGHJKL)
EMC EMI磁珠的特性
QT uses semaphores to control threads (qsemaphore)
对spark算子aggregateByKey的理解
Recommend a fully open source, feature rich, beautiful interface mall system
记录一次mycat连接Communications link failure问题解决
OpenTSDB-时序数据库
Openstack dashboard configuring public network access
jquey的基础语法
机械革命蛟龙p有线网卡驱动打不上
A group of South University students rely on science and technology to go to sea, with an annual income of 1billion
Is the salary of test / development programmers unbalanced? Busy life, all kinds of job hopping
No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?
【活动报名】云原生技术交流 Meetup,8 月 6 日广州见
After being accidentally dragged into QQ fraud group
@The role of documented
Spiral matrix
JS thoroughly understand this point
[event registration] cloud native technology exchange meetup, see you in Guangzhou on August 6
二维数组及操作