The Unity3D applications control flow is based upon events -- when the user ente
ID: 3592994 • Letter: T
Question
The Unity3D applications control flow is based upon events -- when the user enters input to move a ball, for example. This is quite different from how the console C# application flow of code works -- wherein it starts in Main and sequentially executes commands until it reaches the end of Main. These differences represent use of different programming paradigms. Do some research on programming paradigms, then discuss why there is a difference and how you think the Unity3D approach is best for such games and 3D environments.
Explanation / Answer
all gameobjects can be accessed by Find, findwithtag, drag and drop, find in children, and just by populating variable lists in the unity interface via mouse drags. all subcomponents of gameobjects are like gameobject.renderer.material,
all variables are accessible across gameobjects by searching unity answers and copying pasting 2 3 lines of access code...
start and update functions handle execution of your code, lateupdate is for physics, it's in phisics time not fps time.
dont start learning unity by converting huge codes. you can make simple games with dots and mouse clicks to get familiar with it. gui is abit complex it's OnGui class ... or ... screenposition, mouse position code to click buttons.
Related Questions
drjack9650@gmail.com
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.