Forum rules - please read before posting.

Any way to set the Relative Volume of the 'Narrator'?

Most of my upcoming game has narrative text, but the volume of the audio files is high. I noticed that when the game is running, AC creates a 'Narrator' gameObject. I also see that it has a Relative Volume, which I can use to adjust the relative volume of the Narrator. But when the game is not running, the Narrator object disappears.

How would I be able to set a default volume value for Narrator audio?

Comments

  • You should be able to set it by attaching this script to a GameObject in the scene:

    using UnityEngine;
    using AC;
    
    public class NarratorVolume : MonoBehaviour
    {
    
        [Range (0f, 1f)] public float relativeVolume;
    
        private void Start ()
        {
            KickStarter.dialog.GetNarratorAudioSource ().GetComponent<Sound> ().relativeVolume = relativeVolume;
        }
    
    }
    
  • Thanks Chris, your support is much appreciated!

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.