0
\$\begingroup\$

Here is the original lighting ( Unity 2021.1) enter image description here

And Here is the same setup imported in a new project ( Unity 2021.1): enter image description here

As you can see importing this package in new Unity project makes it a lot lighter and I am not sure why. There aren't any additional lights int the scene and setting are the same. I use standard rendering pipeline.

For the prefab it is just a model with 3 directional lights.

\$\endgroup\$
7
  • \$\begingroup\$ The new version looks lighter to me, not darker, unless the screenshots are reversed. Can you walk us through the steps to create a Minimal Complete Verifiable Example of the problem? Once we can reproduce the issue, we can test potential causes/fixes to be sure we've found the right one. \$\endgroup\$
    – DMGregory
    Commented Jul 13, 2022 at 13:01
  • \$\begingroup\$ Yeah I meant lighter sorry. I didn't did anything special I made a Unity package of the prefab and just imported it to a new project. The difference between the projects is the version. This is the prefab view. \$\endgroup\$
    – Ivan
    Commented Jul 13, 2022 at 13:09
  • \$\begingroup\$ I'm not asking you to repeat what you already stated in your question. I'm asking you to find a set of steps that reliably reproduces this issue, and give us those exact steps, so we can follow them and see exactly what you're seeing, then test potential fixes. \$\endgroup\$
    – DMGregory
    Commented Jul 13, 2022 at 13:50
  • \$\begingroup\$ I mean there isn't anything specific I didn't already said. I created a model put 3 directional lights on it. Created a prefab from that model and than created a Unity package from that prefab. I than imported that package in a new project and got different lighting. You can try it with some random model it doesn't have to be anything special. \$\endgroup\$
    – Ivan
    Commented Jul 13, 2022 at 14:19
  • \$\begingroup\$ So walk us through the steps to create the specific model and prefab and lights that demonstrate the issue. Try making a new project and following exactly the steps you give us, to be sure they reproduce the problem. \$\endgroup\$
    – DMGregory
    Commented Jul 13, 2022 at 17:18

1 Answer 1

0
\$\begingroup\$

I figured it out; it was something I completely overlooked. The original scene was created with Default Behavior Mode set to 2D and my new scene is created with Default Behavior set to 3D, so that was causing a lighting difference and I wasn't aware of this.

I just removed the skybox material from the Lighting window -> Enviroment.

\$\endgroup\$
5
  • \$\begingroup\$ The relevant difference there is that there would be an extra light in your scene hierarchy. Showing the scene hierarchy as part of your question would have allowed users to help you diagnose this. \$\endgroup\$
    – DMGregory
    Commented Jul 14, 2022 at 14:02
  • \$\begingroup\$ Not really I removed the default light. The difference is that in Lighting window in environment there is a skybox material on 3d but not on 2d. \$\endgroup\$
    – Ivan
    Commented Jul 14, 2022 at 14:11
  • \$\begingroup\$ Ah, then showing your lighting settings instead of asserting they were the same would also have helped. \$\endgroup\$
    – DMGregory
    Commented Jul 14, 2022 at 14:24
  • \$\begingroup\$ To be honest didn't think of them. \$\endgroup\$
    – Ivan
    Commented Jul 14, 2022 at 17:04
  • 1
    \$\begingroup\$ This is why we ask that questions about debugging an issue in your game include the steps to reproduce a Minimal Complete Verifiable Example. The process of preparing such an example forces you to ensure you've covered every relevant degree of freedom that could contribute to the issue. \$\endgroup\$
    – DMGregory
    Commented Jul 14, 2022 at 17:22

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .