D
D
Deymi2022-01-27 01:09:32
Unity
Deymi, 2022-01-27 01:09:32

How to fix the problem with textures?

I created a multiplayer for my game, after that when I enter the game scene everything is fine, but when I enter the game through the menu scene, I have problems with textures or shadows, I can’t understand what it is. Photo below
Photo from the scene of the game:
href=" https://imgur.com/Ejw232S "> Click
Photo when I go through the menu: https://imgur.com/yyXeN9Y

Answer the question

In order to leave comments, you need to log in

2 answer(s)
D
Deymi, 2022-01-27
@Deymi

Problem solved! If anyone is interested then: Window - Rendering - Lighting - Environment - Environment Lighting - source change to color and Ambient Color to a different color (Not black)!

N
Nekit Medvedev, 2022-01-27
@NIKROTOS

Did I understand correctly? When you start the scene directly, everything works, but when you start it through the menu, doesn't it? It sounds like launching through the menu is somehow different from calling the scene directly.
This article ( https://docs.unity3d.com/ru/530/Manual/ExecutionOr... ) says:
"Please note that for objects added to the scene immediately, the Awake and OnEnable functions for all scripts will be called before calling Start, Update, etc. Naturally, this will not happen for objects called during gameplay."
Therefore, the possible error is that these objects are given a texture in the Awake method, which MAYBE not run when the scene is called.
Do you change the position of the sun? If not, you can bake a light map and when you start the transition to the scene in the start method, write it through the code (the symptom will be cured).

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question