Choices to shape your future. Choose from a wide variety of graduate and professional programs, from optometry and health professions to education, writing and social work. Become a leader in healthcare with Pacific University's wide selection of health professions programs.
GetComponent() is a Unity method from the MonoBehaviour class that is used to access data on other components. To fully understand how this method works, you have to wrap your head around a few different concepts.
Say you have a website (site A) with an iframe wherein you host another website (site B). Here the doSomething function is living on site A and is called by site B through its parent window. For security reasons, this simple way of cross iframe communication was disabled years ago by all browser vendors.