Unity: Object Instantiation + Accessing & Modifying Components

Unity: Object Instantiation + Accessing & Modifying Components

Subscribers:
2,080
Published on ● Video Link: https://www.youtube.com/watch?v=3yqp2dlb0B4



Duration: 3:44
54 views
3


Simple example used in my NSCC Game Development - Level Programming I course. The code showed how to instantiate Unity objects and access, add, and modify Unity object components, all via code.

Of course this example fails in optimization and requires an object pool, a programming pattern that will be taught later on.

Disclaimer: This example was (previously) developed outside of NSCC.

--
Matthew Doucette (Xonatron)
http://matthewdoucette.com/




Other Videos By Matthew Doucette


2021-03-17Unity - Emergence from Simple Enemy AI
2021-03-16Chess - ChessTempo - Blitz - Easy (92%; 22-2; 1580→1579)
2021-03-15Score Rush Extended (PS4) - Beat Silverlordy with 1.2B points
2021-03-14Score Rush Extended (PS4) - 445M (Dual Play/Boss Rush/Normal)
2021-03-13Score Rush Extended (PS4) - 204M (Solo/Boss Rush/Normal)
2021-03-12Fortnite (PS4) - First 30 Minutes of Gameplay - #4/100 - Multiplayer w/henry jones (bugsforyou)
2021-03-11Score Rush Extended (PS4) - 1.2B - #4 in World (Solo/Score Rush/Godlike)
2021-03-10PS4 - Revisiting my PS4 after 2.5 years!
2021-03-09Xbox 360 - Revisiting Xbox 360 Dashboard, Xbox LIVE Arcade, & Xbox LIVE Indie Games in 2021
2021-03-08Chess - ChessTempo - Blitz - Easy (100%; 27-0; 1537→1551)
2021-03-07Unity: Object Instantiation + Accessing & Modifying Components
2021-03-06Chess - Blitz - Xonatron vs. Eyeiszik (3-2)
2021-03-05Chess - ChessTempo - Blitz - Easy (92%; 47-4; 1501→1510)
2021-03-04Operation C (Game Boy) - 1 Life / Hunter Only
2021-03-03Chess - Xonatron vs. Eyeiszik (3-1) - With 3 Queen Drops!!!
2021-03-02Terraria (Xbox One) - First 20 Minutes of (sucking at Terraria) Gameplay
2021-03-01Chess - M. Doucette vs. Stockfish 12 (rook odds) (1-0)
2021-02-28Chess - M. Doucette vs. Stockfish 12 (queen odds) (1-0)
2021-02-27Chess - Maim v1.13 vs. Stockfish 12 (rook + move odds; 5m0s) (1-0)
2021-02-26Chess - Maim v1.13 vs. Stockfish 12 (queen + move odds; 5m0s) (1-0)
2021-02-25Cracking Thin Ice - Lake Milo, Yarmouth, Nova Scotia, Canada