Beginner Scripting : Get Component

 Another interesting bonus task this week, this one is all about GetComponent , which is a very common in coding but not many people knows its exact function . But this video does a great job at explaining it, Get Component is basically the plumbing that allows your script on an object to be able to access that objects other components. However , as said in the video , using GetComponent is very expensive in terms of processing power and should be used as little as possible and ideally at the start of the awake and start functions.



Comments

Popular Posts