Unity 2018 By Example by Alan Thorn

Unity 2018 By Example by Alan Thorn

Author:Alan Thorn
Language: eng
Format: epub
Publisher: Packt Publishing


If texture tiling seems broken for you, then be sure to check the Texture Importing settings. To do this, select the texture in the Project panel, and from the Object Inspector, ensure that Texture Type is set to Texture and the Wrap Mode is set to Repeat. See Figure 4.41:

Figure 4.41: Configuring a texture for seamless tiling

Now the level has a suitable background. Let's add some background music, which will play on a loop. To do this, first select the music track in the Project panel in the Audio folder. When selected, make sure that the music Load Type, from the Object Inspector, is set to Streaming and Preload Audio Data is disabled. See Figure 4.42. This improves loading times as Unity will not need to load all music data to memory as the scene begins:

Figure 4.42: Configuring audio data ready for playback



Download



Copyright Disclaimer:
This site does not store any files on its server. We only index and link to content provided by other sites. Please contact the content providers to delete copyright contents if any and email us, we'll remove relevant links or contents immediately.