H
H
Herman Coffman2020-07-11 20:17:19
C++ / C#
Herman Coffman, 2020-07-11 20:17:19

How to save material?

Hello. The question is: you need to save the material in the script. It should persist across scene reloads. But you can't just make a list of materials and save the player above the index, because.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
Z
zZaKko, 2020-07-11
@zZaKko

There is such a thing as DontDestroyOnLoad. It does not delete the object when moving to another scene. This means that all scripts and variables (including your material) will be saved. https://docs.unity3d.com/ScriptReference/Object.Do...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question