Sharing components among siblings

In Unity, we can make good use of the following functions, when we want to get a component at runtime. This is especially interesting, if you want to structure your scripts in a certain way in the hierarchy and do not want to drag-and-drop the references.

Read more: http://fa-games.de/2016/03/04/unity-getcomponentinsibling/

#CSharp, #FantasyArtsDevs, #IndieDev, #Unity, #UnityTricks, #VolleyBrawl

Advertisements