Unity C# Fundamentals – GameObject Methods (Find, FindGameObjectsWithTag, FindObjectOfType, & more)



Unity3d C# most common static methods available in the GameObject class are shown in this video. We go through 7 different examples and examine through the Unity3d debugger how we can interact with GameObjects through C# code.

GameObject Static Methods included in this video are:
– GameObject.Find
– GameObject.FindGameObjectsWithTag
– GameObject.FindObjectOfType
– GameObject.CreatePrimitive (Cube)
– GameObject.CreatePrimitive (Capsule)
– Instantiate
– Destroy

*** EQUIPMENT USED TO RECORD THIS VIDEO ***

– Photography Photo Portrait Studio 600W Day Light Umbrella –
– 1350W Photography Lighting Softbox Lighting Kit –
– LimoStudio 6 x 9 ft. Green Muslin Backdrop with Ring Metal Holding Clips –
– AmazonBasics 60-Inch Lightweight Tripod with Bag –
– Canon EOS Rebel T6 Digital SLR Camera Kit –

*** BE SURE TO SUBSCRIBE TO GET NOTIFIED OF NEW VIDEOS THANKS ***

Checkout my Patreon page to find the SOURCE CODE to this tutorial:

Get realtime indie development tips from me in Twitter

Subscribe to my indie development videos & game releases newsletter

Blog about Indie development and startup

Nguồn: https://germain-isern.com/

Xem thêm bài viết khác: https://germain-isern.com/game/

Article Categories:
Game

All Comments

  • what should i do if i want my object in scene 2 to find a singleton object from scene1 to which i applied do not destroy on load but this object in scene 2 needs the reference to that object just to actually work?

    TECH& TOM July 20, 2020 9:59 pm Reply
  • What i do if i want to find game object in different scene ??

    Alfian July 20, 2020 9:59 pm Reply
  • how can i find those child objects of parent with code? I want to reach parent and parent name. can you help pls?

    Ravenaige July 20, 2020 9:59 pm Reply
  • Can we find Prefabs with those methods? Even if initially they are not in scene?

    Marwin C Santos July 20, 2020 9:59 pm Reply

Leave a Reply

Your email address will not be published. Required fields are marked *