if statements with no error when script not found
if an if statement wants to see the value of a variable in a script but that script does not exist in that specific object it will give an Error. is there a way to change it so it just does not execute the function inside the {} of sed if statement?
btw here is the line im using it for: if (Button.transform.GetComponent().Activated == true || Button.transform.GetComponent().Activated == true){FunctionIWantToExecute}
Your answer
Follow this Question
Related Questions
UnassignedReferenceException: The variable closest of TAKE has not been assigned. 0 Answers
Multiple .dll files missing, right after installing Unity 0 Answers
Error stage @username 1 Answer
I need someone to help me: error CS1525: Unexpected symbol `void' 0 Answers
Create a copy of a non MonoBehaviour class and set variables from other class 0 Answers