A
A
ase20152019-04-15 18:00:16
C++ / C#
ase2015, 2019-04-15 18:00:16

How to play music in the background without pressing any buttons in Unity?

I have music, how do I make it play in the background?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
D
Denis Gaydak, 2019-04-15
@ase2015

if you are talking about a minimized application, then everything is not so simple there. background activity. manifest. plugin. climb into the bowels of the android.
if you are talking about "launched the game and it plays itself"
then the AudioSource component has documentation
https://docs.unity3d.com/ScriptReference/AudioSour...
and it perfectly describes what the parameters do - playOnAwake and loop.
Understand. read. good luck.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question