当前位置:网站首页>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方法,切换场景后亮度都正常。
五… ?
…
…
…
边栏推荐
- CarSim simulation quick start (XII) - Driver Model (2)
- Opentsdb time series database
- (Reprinted) plantuml Quick Guide
- Basic dictionary of deep learning --- activation function, batch size, normalization
- Qt使用信号量控制线程(QSemaphore)
- Prescan quick start to proficient in lecture 17, speed curve editor
- Detailed explanation of random number generated by random class
- SWM32系列教程5-ADC应用
- protobuf 基本语法总结
- DCL singleton mode
猜你喜欢
![MySQL query error [err] 1046 - no database selected](/img/32/7d877571397c1e2024ec488b783e87.png)
MySQL query error [err] 1046 - no database selected

Prescan quick start to master the transportation elements in lesson 14, prescan

CarSim simulation quick start (XII) - Driver Model (2)

Es6: arrow function usage

【活动报名】云原生技术交流 Meetup,8 月 6 日广州见

XSS knowledge points and 20 character short domain name bypass

No super high-rise buildings | new regulations: what information does it reveal that no new buildings above 500 meters should be built?

Understanding of spark operator aggregatebykey

百度智能云九州区县大脑,描绘城乡新蓝图!

A group of South University students rely on science and technology to go to sea, with an annual income of 1billion
随机推荐
js糖果消消乐小游戏源码
金属质感登录框样式
[Qt5] small software with 5 people randomly selected from the bid evaluation expert base
Find out whether the number exists from the matrix
Draw.io image saving path settings
[Err] 1055 - Expression#2 of select list is not in GROUP BY clause and contains nonaggregated column
Kubernetes技术与架构(七)
MySQL: what is the difference between like and regexp operations?
Prescan quick start to master the track editing path of Lecture 16
C#,入门教程——程序运行时的调试技巧与逻辑错误探针技术与源代码
Prescan quick start to master the road elements of lecture 15
These mobile security browsers are more than a little easy to use
机械革命蛟龙p有线网卡驱动打不上
基于单例模式的yaml参数配置
Change the dataDir path after mysql8.0.16 installation
Melt cloud x chat, create a "stress free social" habitat with sound
A group of South University students rely on science and technology to go to sea, with an annual income of 1billion
EMC EMI磁珠的特性
Exception handling in SQL Server
See how Google uses pre training weights in target detection tasks | CVPR 2022