Unity Programmers Certification|2023 LATEST UPDATE|GUARANTEED SUCCESS
pre-increment ++i post-increment i++ GetMouseButtonDown If pressed GetMouseButton If held down GetMouseButtonUp If released Mouse Button 0 left Mouse Button 1 Right Mouse Button 2 Middle Scene View You CAN change from 2d to 3D You CANNOT add gameobjects to the scene directly (must use hierarchy?) You CANNOT modify objects/components in the Scene View (Inspector) You CANNOT edit what Gizmos are visible (I don't understand these answers but this is what the practice exam said) ForceMode.Force applies continual forces that are impacted by mass ForceMode.Accelration applies continual forces that are NOT impacted by mass ForceMode.Impulse applies instant forces that are impacted by mass ForceMode.VelocityChange applies instant forces that are NOT impacted by mass Is Trigger Makes a collider not 'collide' but serve as a scripting trigger rigidbody.AddForce(Vector3 direction & magnitude, ForceMode) rigidbody.AddForce(rd * 50, ForceMode.Impulse) rigidbody.AddTorque(Vector3 * magnitude) rigidbody.AddTorque( * 200) Fixed Joint locks 2 rigidbodies together Spring Joint joint tries to return the rigidbody to a target position, set in the scene PhysicsRaycast(Vector 3 origin, Vector 3 direction, RaycastHit hitInfo, float distance, int LayerMask) PhysicsRaycast(ion, V, out Hit, deploymentHeight, int Player) Translate Takes a Vector 3. Moves every frame if in update. Often multiplied by a speed variable *T to make it move by meters per second opposed to frame Rotate Takes a Vector 3. Rotates every frame if in update. Often multiplied by a turnspeed variable *T to make it move by meters per second opposed to frame Add sliders to public variables [Range(1.0f, 10.0f)] Serialized Field Makes private variables appear in the inspector Normal Map Stores height and detail information for the sake of lighting without adding vertices to the object specular reflection a reflection produced by a smooth surface in which parallel light rays are reflected in parallel (opposed to metallic) Height Map Gives the surface its variable height occlusion map Defines how reflective/specular recessed areas are ANISO level forced quality of rendered textures based on angle of viewing. Is costly and can be forced on/off Shader a software file that specifies the look of a three-dimensional object or character. Shader is used by the material, alongside textrues, to deine the appearnace of an object. Frame Debugger Allows you to see ow a frame is made. Includes draws (mesh rendering), clears (adding background colors), and lighting instantiate Creates clones of a game object, typically a Preb Instantiate(projectile, barrelEion, barrelEion) Spawns at empty gameobject. To add force, create : Rigidbody projectileInstance; Instantiate(projectile, barrelEion, barrelEion) as Rigidbody; projectileInstance.AddForce(barrelE * 350f) Destroy(GetComponentRigidbody()); You can destroy individual components. Adding a second arguement can add a delay gameObject.SetActive(false); Turns a game object off Profiler Allows user to see overall performance (CPU/GPU etc.) FixedUpdate vs Update Update is once per set frame. FixedUpdate is based on the physics engine and can be set to work in the context of the speed of the game. Best rule: read inputs in Update, move physics in FixedUpdate for(int i = 0; i 5; i++) A for loop . for as long as (set i to 0, loop condition of 5 times, at the end of each loop add +1) while(enemyCount 0) A while loop. As long as the condition is met, execute do { action} while(isAlive == true); Do while. This will do the {action} as long as the 'while' condition is met Arrays
Información del documento
- Subido en
- 27 de mayo de 2023
- Número de páginas
- 6
- Escrito en
- 2022/2023
- Tipo
- Examen
- Contiene
- Preguntas y respuestas