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/
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?
What i do if i want to find game object in different scene ??
how can i find those child objects of parent with code? I want to reach parent and parent name. can you help pls?
Can we find Prefabs with those methods? Even if initially they are not in scene?