outlineToggle.onValueChanged.AddListener(Change_Outline);//Executes code when toggle is changed
shadowToggle.onValueChanged.AddListener(Change_Shadow);//Executes code when toggle is changed
fontList.onValueChanged.AddListener(Change_Font);//Executes code when dropdown is changed
optionButton.onClick.AddListener(Check_Options);//Executes code when button is pressed

if(myCaption ==null)//checks to make sure there is a caption.{//Debug.Log ("It's null");
captionBackground.enabled=false;//turns off caption backgrund if there's no image.return;//returns if there is no caption.}

if(!captionBackground.enabled){ captionBackground.enabled=true;}//turns it back on if a caption replaces a blank caption.

for(int i =0; i < captionSplit.Length; i++)//we need to get the length of the longest ling of captions to set background box size{if(captionSplit[i].Length> maxCharacters){
maxCharacters = captionSplit[i].Length;//gets length of longest line for setting box width.}}

maxCharacters += sidePadding;//adds padding at side for background box.