Search Unity

Audio I have a problem about Audio Source

Discussion in 'Audio & Video' started by mxlih, Nov 9, 2018.

  1. mxlih

    mxlih

    Joined:
    Aug 28, 2018
    Posts:
    4
    I created a character and I created a sprite renderer, a rigidbody 2d ,a script , a capsule collider 2d , 11 pcs audio source in this character but when I create one more audio source so 12.pcs , does not work at the time I want , is there a certain component usage limit? or am I using the codes in the wrong place ?
    I hope I can ask if I want to ask :) thank u.
     
  2. leftshoe18

    leftshoe18

    Joined:
    Jul 29, 2017
    Posts:
    61
    As far as I know there isn't a limit. I have a script that dynamically creates audio sources at runtime and have had no problems with upwards of 20 sources on a game object working just fine.