Intro to Unity GameObjects and Prefabs Introducing GameObjects A - - PowerPoint PPT Presentation

intro to unity
SMART_READER_LITE
LIVE PREVIEW

Intro to Unity GameObjects and Prefabs Introducing GameObjects A - - PowerPoint PPT Presentation

Intro to Unity GameObjects and Prefabs Introducing GameObjects A fundamental object that represents players, enemies, bullets, and scenery. Each GameObject contains a transform which is a point in a space. GameObjects can contain other


slide-1
SLIDE 1

Intro to Unity

GameObjects and Prefabs

slide-2
SLIDE 2

Introducing GameObjects

A fundamental object that represents players, enemies, bullets, and scenery. Each GameObject contains a transform which is a point in a space. GameObjects can contain other GameObjects.

slide-3
SLIDE 3

GameObjects (cont’d)

Components are added to GameObjects to provide behavior. Unity provides several pre-made GameObjects.

slide-4
SLIDE 4

GameObject Lifecycle

Awake OnEnable Start Update FixedUpdate LateUpdate OnDisable OnDestroy

Other methods: Reset, OnWillRenderObject, OnGUI

Startup Updates Teardown

slide-5
SLIDE 5

Prefabs are GameObjects that can recreated in the scene view or in code. Changes to individual prefabs can be “reverted” back to the original prefab Change can also be applied to all the other prefabs as well

Prefabs

slide-6
SLIDE 6

Demo

slide-7
SLIDE 7

Challenge