Search Unity

Change material on an object in other scene

Discussion in 'Scripting' started by Barft, Aug 1, 2015.

  1. Barft

    Barft

    Joined:
    Apr 9, 2015
    Posts:
    84
    Hi all, I need your help with this problem.

    I want to change a material of an object in an other scene, for example: when you click the button in scene 1 it will change the material of an object in scene 2.

    I have searched for some more information on the web, and I saw that you can do this with among other things like DontDestroyOnLoad(), but I do not know how to apply this to what I want.

    I'm a beginner in C# and Unity so I like to have some code, because my experience are not the best with c#.

    Thanks all!