26.Unity C# Scripting Tutorial- Finding GameObject with Tag



Watch All C# Tutorials Here:
Build 10 Games & Apps With Unity & C#:
|————- ( Click On Show More ) —————- |

1. Build 7 2D & 3D Games With Unity:
2. Create Full games with Unity + Monetize & Publish:
3. Create Candy Crush,Angry Birds,Spring Ninja BasketBall:

| ——————————————————————– |

List of Best C# Scripting Books:
1. International:
2. For Indians:

| ——————————————————————– |

Best Unity C# Scripting Courses:
1. Learn C# Building Games:
2. Advaced C# Scripting:

| ——————————————————————– |

Get 17000+ Premium Video Courses(Free):

| ——————————————————————– |

You Can Donate Here:
1. Paypal:
2. For Indians:

| ——————————————————————– |

List Of Gears I Use:
1. Mic:
2. Webcam:
3. Router:
4. Headphone:

4. Get More Views On Youtube With This Tool:

| ——————————————————————– |

List Of My Youtube Tutorials:
1. C# Scripting Tutorial:
2. Android Game Development Tutorial:
3. 2D Racing Game Tutorial:
4. 2D Brick Breaker Game Tutorial:

| ——————————————————————– |

Video Description:
Welcome to Unity3D C# scripting tutorial series. In this series you will learn how program in C# in unity to create awesome games. Writing scripts is one of the most important process of creating games in unity3d game engine. If you learn C# from ground up , you can create amazing games in unity. C# coding gives you a lot of control over unity, which you can use to do whatever you want in your game. If you are starting with unity game development scripting, you should start learning C# instead of javascript. C# allows you to write scripts for unity in a more organised way, which would help you to understand your game code later. If you want to be a game programmer then Unity and C# is a great way to start learning about various game development principles. Unity is a full fledged game engine, you can do anything you want, and when you have the power of C# in it, you can achieve anything easily. You can write more robust, readable, faster executable code for unity game development. You may have seen that Unity official tutorials also use C#, since it’s better to write code in C# than javascript. javascript is a more free form language, it gives you more freedom which is not that good in long run. If you want to write better code for unity game development, then you should write your code in unity with C#. C# is a great language developed by microsoft for it’s .net platform, and unity uses it as a scripting language.

Thanks a lot for watching this video, if you have any questions, write those in comments. I hope you enjoyed. Please subscribe and like , comment , share.

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

  • Haha, even after 4 years, this is still perfect, thank you!

    Raymond Lin July 23, 2020 12:52 pm Reply
  • I started from 0
    And now i understand how programming works!
    Thanks man keep it up!

    AreanoX X July 23, 2020 12:52 pm Reply
  • thanks for the help. this is just what needed. and your tutorials are just great.

    Anyfinity Abrar July 23, 2020 12:52 pm Reply
  • your videos great , they dont need any thing

    ayham zidan July 23, 2020 12:52 pm Reply
  • We love U r video it is pretty much knowledgeing and it's not bore we really enjoy u r videos ☺️

    prasad ' - ' July 23, 2020 12:52 pm Reply
  • I replaced Destroy with Rejoice

    Miguel Lavariel July 23, 2020 12:52 pm Reply
  • Hello I have a question I have been searching for 2 days about if command I have a car and a player I want them to touch when this happens: SceneManger.LoadScene (0);

    But I've tried it so many times I did

    using UnityEngine;

    using UnityEngine.SceneManagement;

    public class PlayerControler: MonoBehaviour {

    public float speed;

    public float ol;

    public transform car;

    public transform lol;

    Animator animator;

    // Use this for initialization

    void Start () {

    animator = GetComponent <Animator> ();

    }

    void Update () {

    if (Input.GetKey (KeyCode.UpArrow))

    transform.position + = Vector3.up * Time.deltaTime * speed;

    if (Input.GetKey (KeyCode.RightArrow))

    transform.position + = Vector3.right * Time.deltaTime * ol;

    }

    // Update is called once per frame

    void OncollisionEnter (Collider other)

    {

    // lol is the player

    if (car.CompareTag ("lol"))

    {

    SceneManager.LoadScene (0);

    }

    }

    }

    please help me

    Reex _ July 23, 2020 12:52 pm Reply
  • Raja "Dangerous guy" LOL🤣

    Suhas Alavala July 23, 2020 12:52 pm Reply
  • Thanks from Iraq pro. you are very cool.

    Mohammed Akram July 23, 2020 12:52 pm Reply
  • Does this work for things in a canvas?

    Dragons Clash July 23, 2020 12:52 pm Reply
  • Your Tutorials are really amazing you have the only unity c# tutorial. Just Don,t explain so long just get to the point quickly.

    rok bednjanic July 23, 2020 12:52 pm Reply
  • It is not boring carry on

    LO LO July 23, 2020 12:52 pm Reply
  • No! Don't destroy Raja! We love him!

    M D July 23, 2020 12:52 pm Reply
  • All tutorials are Very helpfull.
    Thanks a lot:

    Ghulam Fareed July 23, 2020 12:52 pm Reply
  • no you r not poring you r Awesome

    Kerols Monsef July 23, 2020 12:52 pm Reply
  • i want this to be in a radius i set, plz help me

    Samin The Gamer July 23, 2020 12:52 pm Reply
  • Hey dude,I'm not watching your videos for fun!!
    I'm watching them for understanding,and your doing well.very well,and I appreciate that.thank you

    Negar Hosseini July 23, 2020 12:52 pm Reply
  • Your contents are good but not the name when you say.

    Vikash Dhruwanshi July 23, 2020 12:52 pm Reply
  • bhai apna name mt liya kr
    Na uska use kie kr

    Vikash Dhruwanshi July 23, 2020 12:52 pm Reply
  • Dont know if i did it right, but it outputted "Assets/Cube.cs(12,3): error CS0103: The name `cam' does not exist in the current context"
    my script is
    void Start () {

    moveSpeed = 5f;

    gravity = 5f;

    Cam = GameObject.FindWithTag ("Cam");

    }

    Butterkid July 23, 2020 12:52 pm Reply
  • What if I'm trying to select a specific clone of a gameobject by left clicking on it, when they all have the same tag? (such as "red team unit" or "blue team unit") right now whenever I left click one gameobject, I'm trying to display that objects health bar, however, the problem is, every health bar of all that objects clones display as well.

    CaesarThaToast July 23, 2020 12:52 pm Reply
  • If someone believes these videos are boring, then that means they don't like coding so that shows only true game developers will finish these videos because your videos are super interesting and helpful

    Alextor 13 July 23, 2020 12:52 pm Reply
  • You aren't boring my friend, your videos are most helpfull what i've ever seen 🙂 Thanks a lot

    Pechy6CZ Czech Let's Play July 23, 2020 12:52 pm Reply
  • brother, you are great!you have made learning Unity easier for us!

    Thank you 😊

    Rabbit Production July 23, 2020 12:52 pm Reply
  • Imagine that Raja is city. "And finally, we deatroy raja"

    Infixr July 23, 2020 12:52 pm Reply
  • Don't mind if you're boring or not, you're videos are really helpful, keep it up, be on your own style mah men!

    Makku Giru Gutierrez July 23, 2020 12:52 pm Reply
  • It is awesome tutorials, you do not have to be funny I enjoing it as it is. At last i feel that i am starting to get this script things. I love that you explaining all functions in detail and digging in to it, thanks, you are awesome!!! =)

    trapr00t July 23, 2020 12:52 pm Reply
  • I just found your videos and they're extremely helpful!

    Ben E July 23, 2020 12:52 pm Reply
  • i'm loving this and its been 2 years sins you made this lol

    Smash The 1st July 23, 2020 12:52 pm Reply
  • …. awesome job , thanks .. ; ] ,,

    Katax Emperor July 23, 2020 12:52 pm Reply
  • This worked perfectly with "Destroy", but why does "SetActive " return a "NullReferenceException: Object reference not set to an instance of an object"? I managed to use SetComponent<> and attach a material and enabling/disabling the material instead. But is that the right way?

    Riskteven July 23, 2020 12:52 pm Reply
  • i don't think it is boring. It is really important to know the basic stuff before going deeper.

    Xun July 23, 2020 12:52 pm Reply
  • Great vids bro.. C# finally clickin 4 me

    mardar8 July 23, 2020 12:52 pm Reply

Leave a Reply

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