S
S
Sasha Fedorov2021-12-19 23:42:34
Unity
Sasha Fedorov, 2021-12-19 23:42:34

How to transfer only music to other scenes?

This code passes all objects in the scene:

void Awake()
    {
        DontDestroyOnLoad(m_MyAudioSource.transform.root);
    }

61bf9a5316214546913125.jpeg
61bf9abcb8984564515879.jpeg

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question