Thank you for submitting your inquiry.
You can track the status of your inquiry here.
You may want to save your case's ticket: 517281_ke8lh9ucn3807tjo


    (Closed) AudioSource.priority has an incorrect value of 256 in the
     
     
     
    4
    1) What happened

    AudioSource.priority has an incorrect value of 256 in the docs.  It should be 255.  The example in the docs is also wrong by assigning it 256, it should say 'audio.priority = 255;'

    2) How can we reproduce it using the example you attached

    Simply attach the script to a GameObject and read the output in the console.

    Here is the explanation:

    In probably the Start or Awake function write:

    audio.priority = 256;
    Debug.Log (audio.priority);

    The console will say 255 which is consistent with the max value of an unsigned byte.

    If you assign the value in the inspector it also maxes out at 255.
     
       
      Your Cases:
      Case Title Status Date Opened
      1077854 Immediate Crash Open 9/4/2018 4:20 PM
      894318 Linux player crash when using Vulkan due to missing file 'data.unity3d Closed 3/23/2017 5:40 PM
      517281 AudioSource.priority has an incorrect value of 256 in the Closed 1/23/2013 11:43 PM
      504301 Events such as mouse over and mouse down keep their original Closed 12/4/2012 11:25 PM
      504291 Application.CancelQuit() in the OnApplicationQuit method on Closed 12/4/2012 9:55 PM