A game can have many Scenes, each sharing or with their own G.O.s, Controllers, and Prefabs. Components can most easily be added to G.O.s and have their settings adjusted in the Inspector, with the G.O. Just about everything in the game starts as an empty G.O., to which we add components to build it into an interactive asset.ĬOMPONENT: everything we add to Game Objects to make them function as desired, including renderer, materials, particles, audio, physics, and custom scripts. GAME OBJECT: The base of a thing in Unity. Unity has good physics engines built in (both 2D and 3D), complete with collision systems, raytracing, etc.Mathf = math functions collection, including clamp.Select a term you do not understand and hit + to access documentation.This is good! See Console panel or footer for error messages to find the line with the problem and fix it. Unity won’t play the game if a script has an error.Scripts can access Components on their GameObject (play audio, change color or RigidBody Mass, etc).> Script (C#) or RightClick Project panel Assets folder to Create > C# scriptĪnd drag onto the object in the Hierarchy. Scripts are Components added to GameObjects:.Unity does not use one large block of code to manage the game instead, each interactive object has one or more scripts to manage its behavior.Once assigned, open editor by DoubleClicking a script. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |