Search Unity

Resolved Scene from template : cloned material revert back to original in play mode and build

Discussion in 'Prefabs' started by The_Storm_Rider, Nov 25, 2022.

  1. The_Storm_Rider

    The_Storm_Rider

    Joined:
    Jan 28, 2020
    Posts:
    66
    HI everyone,

    I'm having a big issue with scene template. So I made my own scene template, I set only two materials to be cloned, including a skybox material.
    upload_2022-11-25_12-59-31.png
    Then I created scene from this template using the new scene dialog. This work nice and I can change the skybox properties or even changing it's material. But when I enter play mode, the cloned material revert back to the original material ! (changing the skybox look and so the water reflections don't fit anymore) This also happens in build and it's a major issue for me.

    I thought it was a bug, so I tried to reproduce it with a simple scene template, but it did not happen again. Am I missing something here ?
     
  2. The_Storm_Rider

    The_Storm_Rider

    Joined:
    Jan 28, 2020
    Posts:
    66
    I just found out that the problem doesn't come from the scene template but somewhere else, I'll check my scripts.
     
  3. The_Storm_Rider

    The_Storm_Rider

    Joined:
    Jan 28, 2020
    Posts:
    66
    OK that was obvious, I added by mistake a skybox component in the camera scene template. I removed it and now it's OK.
     
    Peter_Olsted likes this.