Science & Technology. Connect with Schools. iLearn boasts a wonderful arts program that ranges from Fine Arts to Theatrical Arts. iLearn is leading the way with state of the art technology in all classrooms for learning and instructional purposes. iLearn believes that communication is very important between home and school.
This QuickStart illustrates the key components in the implementation of the Model-View-Presenter pattern in a Composite Web Client solution, taking advantage of the dependency injection mechanism included in the Composite Web Application Block.
First, you declare a variable of type Camera to hold a reference to the Camera Component which you are going to find on the same GameObject. Next, you call GetComponent() in itâs generic version on the type Camera, which will return the first object of type Camera that is found. 1. mainCamera = GetComponent (Camera) as Camera; Above is the âstandardâ version of GetComponent() , which might be easier to understand, because it is slightly more explicit. The method searches for a class that is called Camera by string and then passes the class as the type of Camera so that we can store it in our variable. The as operator can be used to convert classes (they must be a reference type, so that they are able to return null !).