Game Development Course Class# 10: C# Variables | Real Life Example.

แชร์
ฝัง
  • เผยแพร่เมื่อ 15 ธ.ค. 2024

ความคิดเห็น • 133

  • @FarhanAqeel
    @FarhanAqeel  4 ปีที่แล้ว +10

    Han bhai 3 + 5 kia hota h? 😂 aur Farhan nitrate/Babu bhai ko kis kis ne pehchana?? Share zarur kardena if this video was good..
    sari confusion facebook group pe post karden xD
    Link: facebook.com/groups/FreelancingHelpOfficial
    Insta: "farhan.aqeel"

    • @anooshahameedi7418
      @anooshahameedi7418 4 ปีที่แล้ว +2

      Thanks, Sr but Abhi mere pass koi system Nhi hai for gaming but I am interested...

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      @Trilax gamer babu bhai sb k favourite character hen xD

    • @vitthalojha
      @vitthalojha 3 ปีที่แล้ว

      8

    • @AgEnTRaVeNpRoo
      @AgEnTRaVeNpRoo 2 ปีที่แล้ว

      @@FarhanAqeel 8

    • @hanansheikh8464
      @hanansheikh8464 2 ปีที่แล้ว

      😘😘😘😘🥰🥰🥰🥰🥰🥰🥰🥰🥰🥰

  • @syedhikmatullah7831
    @syedhikmatullah7831 3 ปีที่แล้ว +1

    are the best instructor ever sir

  • @hassaanraheem5644
    @hassaanraheem5644 4 ปีที่แล้ว +2

    Acessmodifiers : ye ksi ko ksi kaam ya data dene ya nadene ke liye use hoty hai.
    private : is modifier wale data ya kaam ko hum same class ke block Mai use krte or isko koi or class use nhi krskta
    public : is modifier wale data ya kaam ko hum whole program yaani ksi bi class Mai acess krskte hai
    💲data means variables
    💲Kaam means functions or methods.
    Variables ?? 1 empty box ya container jismai hum data ko save krte hai . Or data tb tk us variable Mai save rehta hai jb tk program running mode Mai hai.
    Data : wo cheez jise hum dekh skte hai data hai. Like (texts , images , audios , videos )
    What is Datatype ?
    Data means jise hum dekte hai or type means wo data kis form Mai hai (text , number , special characer , image , video , sound ) agr hum data or type dono ko combine krde tu datatype bnta hai or datatype Mai hum data ki form ko likte hai yaani uski form Kya hai.
    Basic Datatypes :
    1) string
    2) int
    3) float
    4) char
    5) bool
    Iske ilawa or bi datatypes hoskte hai datatype ke kuch khususiat bi hoti hai.jis Mai data ka size Kya hona chahiye ye SB shamil hai.
    Note :
    1)String ke data ko hum double quotations ke andar likte hai.
    Public String app_name = "TH-cam" ;
    2) Character ke data ko hum single qoute Mai likte hai.
    Public char key = 'w' ;
    3) numbers wale jitni bi datatypes hai (int , float , double) inko na tu double qoutation Mai likte hai or na hi single qoutation mai agr hum numbers ko double qoutation Mai likhde tu wo string bnjayega or usnumber pr hum operation perform nhi krskte operation means calculations ( + , - , * , ÷ , % ) etc.
    a) For int :
    private int age = 19 ; ☑️
    private int age = "19" ; ❎
    b) For float ;
    public float height = 5.9f ; ☑️
    public float height = 5.9; ❎
    c) For double ;
    double Mai float or int dono type
    ke data ko save krskte hai.
    So question is fir jb int or float dono
    ke liye alag alag datatype hai tu ye
    Kyu bnayagya hai?
    Answer : because agr bre size ka number hai tu use hum int or float Mai nhi store krskte uske liye Hume double use krna prta hai.
    ✌️. .✌️

  • @kamran5482
    @kamran5482 4 ปีที่แล้ว +2

    its called concatenation
    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class lesson1: MonoBehaviour
    {
    private string name = "kamran";
    // Start is called before the first frame update
    void Start()
    {
    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log(" My Name Is "+name);
    }
    }

  • @fayazhussain5547
    @fayazhussain5547 4 ปีที่แล้ว +1

    Nicely explained

  • @matpathiakash924
    @matpathiakash924 4 ปีที่แล้ว +2

    Awesome very useful...... ❤️❤️

  • @bilalsheikh3988
    @bilalsheikh3988 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Variable : MonoBehaviour {
    private string box = "Mohsin";
    // Use this for initialization
    void Start () {
    }

    // Update is called once per frame
    void Update () {
    Debug.Log ("My name is " + box);
    }
    }
    "Bhai logo mene 10 se uppar ye video or is se pehli vale videos dekhi tab jake sare concepts clear hoe h agar kisi ko bhi shuruwat m samjh na aaye to ghabraye nhi"

  • @MuhammadOsamaAhmedEB_
    @MuhammadOsamaAhmedEB_ 3 ปีที่แล้ว +5

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Variable : MonoBehaviour
    {
    private string myName = "Ertugrul";
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log("Suleman Shah ka Beta "+myName+"!");
    }
    }

  • @muhammadtahir2387
    @muhammadtahir2387 ปีที่แล้ว

    alhumdulliha i done it ,and thanks sir

  • @ETechByAbbas
    @ETechByAbbas 2 ปีที่แล้ว

    console window nai aa rahe.

  • @GameDeveloper928
    @GameDeveloper928 3 ปีที่แล้ว

    Sir agr public karkay farhan ki jagah "my name is farhan" liko tu direct hojata hay

  • @pirateKing2007
    @pirateKing2007 2 ปีที่แล้ว +2

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Variables : MonoBehaviour
    {
    private string myName = "Amaan";

    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log("I love Peaky Blinders ");
    }
    }
    Respected Sir, Assigment Successfully Done ! 😊😁

  • @armanexcel
    @armanexcel ปีที่แล้ว

    Sir my Unity Scene windows is not showing Grids Lines boxes

  • @hope1234-w5e
    @hope1234-w5e 3 ปีที่แล้ว

    sir ma script lekta o but unity may load e ni hota farhan is here and farhan loop be leka but ni accecpt kiya unity ny ma sir 2018.4.20ft unity use kr rha o and visual studio 2017 wala download kiya ha pc i5 3rd generation 4 gb ram ha please ans me

  • @sfmovies.
    @sfmovies. 9 หลายเดือนก่อน +1

    [SerializeField] Private String Variable = "Check";
    in update function
    {
    Debug.Log("My Name Is:" + Variable);
    }

  • @mhasultanmohammed4552
    @mhasultanmohammed4552 3 ปีที่แล้ว

    ye directional light wala 3d model aap ko kahan se mila plz help !!

  • @ranamuhammadsiddique5722
    @ranamuhammadsiddique5722 4 ปีที่แล้ว

    Sir nichy console wali jagha kuch show ni ho raha.

  • @mrSolo295
    @mrSolo295 3 ปีที่แล้ว

    Debug.log("my name is " + my_name);
    ye log funtion jo print function ka jesa hai sir?

  • @sathvikl.k8354
    @sathvikl.k8354 4 ปีที่แล้ว

    hmmm lauch your full course on udemy i will defiinately buy it !!!!!!!!!!

  • @kayPlayz.
    @kayPlayz. 2 ปีที่แล้ว

    Question: i have installed 2 versions of unity and also 2 versions of visual studio code, is it good to keep 1 version of vs code for all unity versions?

  • @AlphaFlarebenchmarks
    @AlphaFlarebenchmarks 3 ปีที่แล้ว

    apke videos india se dekhta hun, kafi sare ads aate hein, CPM kya he apke videos ka?

  • @Nickversal
    @Nickversal 4 ปีที่แล้ว +2

    3 + 5 = 8

  • @syedhikmatullah7831
    @syedhikmatullah7831 3 ปีที่แล้ว +1

    sir Farhan, I had a question. please reply even I try to Use the bolt software to build a game.
    is it ok? I try to understand the programming but it's too hard I need a suggestion.

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +1

      answer: th-cam.com/video/iLwvFBLbols/w-d-xo.html

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว +1

      agar hard lag rahi h to teacher change kar k dekhen. video dekh k practice karen ek se ziada bar. notes banaen. question ho to group me post karen.

  • @soniccanvas5
    @soniccanvas5 10 หลายเดือนก่อน

    Best teancher

  • @aliamir9116
    @aliamir9116 ปีที่แล้ว

    Sir all compiler error have to be fixed ka error a raha ha

  • @tallu777
    @tallu777 ปีที่แล้ว

    Assignmnet Solution:
    public class Variable : MonoBehaviour
    {
    private string name = "Talha ";
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log("My Name Is " + name);
    }
    }

  • @muhammadtahir2387
    @muhammadtahir2387 ปีที่แล้ว

    Assets\scriptrs\variables.cs(17,8): error CS0103: The name 'Dubbing' does not exist in the current context

  • @muhammadtahir2387
    @muhammadtahir2387 ปีที่แล้ว

    Assets\scriptrs\variables.cs(17,14): error CS0117: 'Debug' does not contain a definition for 'log

    • @FarhanAqeel
      @FarhanAqeel  ปีที่แล้ว +1

      c# is case-sensitive. its Log, not log

  • @Marjan_Ali
    @Marjan_Ali 3 ปีที่แล้ว

    Done bro karlia magar ek bat mujhy samjh ai k agar variable or script ka name same hoga to error ata hai script nhi lagti kisi object pe am right sir ?

  • @hamaaritech8714
    @hamaaritech8714 3 ปีที่แล้ว

    sir c# k ilawa hum koi or pro language use kar sakty ha yani javscript agar ma javascript use karo sekho to problem to ni ? or programming language ka use game dev ma kaha hota ha ?
    #FarhanAqeel

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว

      iska answer class 1 me h.

    • @hamaaritech8714
      @hamaaritech8714 3 ปีที่แล้ว

      @@FarhanAqeel ok sir thank you so much

  • @officialinsta9736
    @officialinsta9736 4 ปีที่แล้ว

    Sir how we can do that k first 500 time Farhan print ho aus k bad phir farhan nitrate ho ..

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +1

      Ham 2 videos k bad conditions parhengay tb ye cheez ajaeygi

    • @officialinsta9736
      @officialinsta9736 4 ปีที่แล้ว

      @@FarhanAqeel thanks

  • @AliRaza-uo7sz
    @AliRaza-uo7sz 4 ปีที่แล้ว

    syntex apne konse class parhaya tha sir ?( first class me to nh hy syntex ka zikar)

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว

      1 + 2

    • @battlefiedkhan1425
      @battlefiedkhan1425 3 ปีที่แล้ว

      Sirf zikar kiya tha ke syntax for example programming language ka grammer hai..

  • @GameStop__ff
    @GameStop__ff 3 ปีที่แล้ว

    Tommorow is my exam thanks

  • @IMRAN13808
    @IMRAN13808 2 หลายเดือนก่อน

    hi i am only 13 years old and i am also understanding you're mind blowing
    hi i am only 13 years old and i am also understanding you're mind blowing
    hi i am only 13 years old and i am also understanding you're mind blowing

  • @mhasultanmohammed4552
    @mhasultanmohammed4552 3 ปีที่แล้ว

    public class Script1 : MonoBehaviour {
    private string my_name = "Mha Sultan!!";
    // Use this for initialization
    void Start () {
    }
    // Update is called once per frame
    void Update () {
    Debug.Log("My name is " + my_name); //Here is the exercise ..
    }
    }

  • @mahindersingh3995
    @mahindersingh3995 3 ปีที่แล้ว

    SECOND WAY TO PRINT
    public string name =" MY NAME IS MAHINDER SINGH";
    void update()
    {
    Debug.Log(name);
    }
    in UNITY
    console print = MY NAME IS MAHINDER SINGH

  • @TYCuber
    @TYCuber 4 ปีที่แล้ว

    Nice

  • @User2-d4w
    @User2-d4w 3 ปีที่แล้ว +1

    private string myName = "My name is Danial";
    Debug.Log (myName);
    result... My Name is Danial
    is this right method ??

  • @RasheedAhmad-ty7fs
    @RasheedAhmad-ty7fs ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class Variables : MonoBehaviour
    {
    private string Myname1 = ("Asif Rasheed");
    private string Myname2 = ("Rasheed Ahmad");
    private string Myname3 = ("Kotla Musa Khan");
    // Start is called before the first frame update
    void Start()
    {

    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log("Myname1 =Asif Rasheed. +Myname2 = Rasheed Ahmad +Myname3 = Kotla Musa Khan");
    }
    Result= Myname1 =Asif Rasheed. +Myname2 = Rasheed Ahmad +Myname3 = Kotla Musa Khan
    UnityEngine.Debug:Log (object)
    Variables:Update () (at Assets/Script/Variables.cs:21)

  • @abdullahkhan-qf8cn
    @abdullahkhan-qf8cn 4 ปีที่แล้ว

    lolz 17:46 :) babu bhai i also think same i pause your video and write babu don instead of babu bhaoi first i think babu bhai then i wrote babu don i think the same name babu lolz i didnt see you also wrote when i come back lolz i see the same think i wrote

  • @illusion4509
    @illusion4509 4 ปีที่แล้ว

    Sir please laptop ky cursor py koi cheez lagayan jis sy cursor asani sy nazarr ayyyy humm ko. Is trha patta ni chalta cursor khnn ha

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      Next class se iska khayal rakhunga :) suggestions aur questions fb group pe post kardia karen. asani rehti h

  • @raofaizan4686
    @raofaizan4686 3 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class variables : MonoBehaviour {
    private string myName = "raofaizan";
    // Use this for initialization
    void Start () {
    }
    // Update is called once per frame
    void Update () {
    Debug.Log("learning game development: " +myName);
    }
    }

  • @zubairmaqsood8467
    @zubairmaqsood8467 3 ปีที่แล้ว

    public string myName = "zubair";

    // Use this for initialization
    void Start () {
    }

    // Update is called once per frame
    void Update () {
    Debug.Log ("my Name is"+ myName);
    }

  • @mukulparcha7904
    @mukulparcha7904 3 ปีที่แล้ว

    Sir maine apne coding theek kiya hai but still my play button is not working plz sir resolve this issue

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว

      please post a screenshot in the group

  • @xelate2249
    @xelate2249 3 ปีที่แล้ว

    I would like to use phone a friend for your question

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว

      try this friend for your question: th-cam.com/video/x0lL-zLJL8M/w-d-xo.html

  • @MuhammadAdnan-gw5zk
    @MuhammadAdnan-gw5zk 4 ปีที่แล้ว

    sir meri console window nhi araha ha plz help

    • @kamran5482
      @kamran5482 4 ปีที่แล้ว

      IDE install kro

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +1

      Start k code block me Debug.Log("Hello") likhen. ajaeyga

    • @atyiagillani5874
      @atyiagillani5874 3 ปีที่แล้ว

      Same issue mera b consol window show nae ho ra

  • @sahilchouhan1858
    @sahilchouhan1858 9 หลายเดือนก่อน

    Assignment answer= Debug.Log("My name is "+myName);

  • @mhasultanmohammed4552
    @mhasultanmohammed4552 3 ปีที่แล้ว

    3 + 5 = 7😛😛!!
    Just Kidding!!
    3 + 5= 8😁😁!!

  • @MOoD---
    @MOoD--- 4 ปีที่แล้ว

    Computer bhai kaise bolay ga?

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว

      Red line bana k cheekh cheekh k bolay ga k error h.

  • @prime4gamers845
    @prime4gamers845 3 ปีที่แล้ว

    sir ye cheez me java script me kar sakta hu me aapko insta pe bhejoonga code because i am a web developer

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว

      its better to do the assignment in c# and post it in the group

  • @sidhu72623
    @sidhu72623 ปีที่แล้ว

  • @fahadelahi369
    @fahadelahi369 ปีที่แล้ว

    sir u forgot "PRE RAJULIZATION" 🤣

  • @Saad-uz6nc
    @Saad-uz6nc 4 ปีที่แล้ว +1

    3+5=35😁😁😁😁

  • @abdullahkhan-qf8cn
    @abdullahkhan-qf8cn 4 ปีที่แล้ว

    Types of Values/Data:
    • string - stores text, such as "Hello World." Double quotes surround string values
    • Integral - stores integers (whole numbers) without decimals, such as 123 or -123
    • double - stores floating-point numbers, with decimals, such as 19.99 or -19.99
    • char - stores single characters, such as 'a' or 'B.' Single quotes surround char values
    • boolean - stores values with two states: true or false

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +2

      Do post this in Facebook group as well. it will help others too

    • @cuberspeed4971
      @cuberspeed4971 2 ปีที่แล้ว

      thx

  • @TalhaRiaz197
    @TalhaRiaz197 3 ปีที่แล้ว +1

    sir kabhi bhi ye kaam mat chorna karte rehna

  • @AbdulSamad-gk9cp
    @AbdulSamad-gk9cp 4 ปีที่แล้ว +2

    jis ko programming ati hai wo to boar horha hai

  • @ikbalhussainshakil2311
    @ikbalhussainshakil2311 3 ปีที่แล้ว

    using System.Collections;
    using System.Collections.Generic;
    using UnityEngine;
    public class veriable : MonoBehaviour
    {
    public string myName = "Shakil";
    // Start is called before the first frame update
    void Start()
    {
    }
    // Update is called once per frame
    void Update()
    {
    Debug.Log("My Name is:" + myName);
    //Debug.Log(myName);
    }
    }

  • @5842BILAL
    @5842BILAL 4 ปีที่แล้ว

    private string myName1 = "Bilal Nasim";
    private string myName2 = "Farhan Aqeel";
    Debug.Log("My name is= " + myName1 + ".My Game Development Teacher is= " + myName2 + ".");
    Output=My name is= Bilal Nasim.My Game Development Teacher is= Farhan Aqeel.

  • @sameermughal31
    @sameermughal31 4 ปีที่แล้ว +1

    Jis ne computer ko programming language sekahi wo agar computer ko english sekha deta to kya chala jata 😂😂😂😂😂😂😂😂

    • @sameermughal31
      @sameermughal31 4 ปีที่แล้ว

      Yes 😂😂😂😂😂😂😂

  • @tgr.live1
    @tgr.live1 4 ปีที่แล้ว

    8

  • @mehwishazeem6022
    @mehwishazeem6022 3 ปีที่แล้ว

    slam farhan aqeel uncle my name is zahraa 3+5=8 is your answer thanks

  • @ALPHAGAMING20
    @ALPHAGAMING20 4 ปีที่แล้ว

    Bhai pubg ke liye kya karu tum jitna batate ho wo samaj aata hai lekin pubg jaisa game kaise banaye 😵😵

    • @FarhanAqeel
      @FarhanAqeel  4 ปีที่แล้ว +1

      is video me ap k answers hen :
      th-cam.com/video/iLwvFBLbols/w-d-xo.html
      th-cam.com/video/LjpUa8jezew/w-d-xo.html

  • @athermaqsood8309
    @athermaqsood8309 4 ปีที่แล้ว

    8 hota hy

  • @Irtaza_Dubbs
    @Irtaza_Dubbs ปีที่แล้ว

    farhan nitrate prerajulization 🤣

  • @dragongamers9461
    @dragongamers9461 3 ปีที่แล้ว

    3+5=8🤣🤣🙏🙏🙏

  • @abduksam
    @abduksam 4 ปีที่แล้ว

    Debug.Log ("My name is ", myName);

    • @BECEOODipen
      @BECEOODipen 4 ปีที่แล้ว

      Nope

    • @abduksam
      @abduksam 4 ปีที่แล้ว

      @@BECEOODipen yeah + instead of ,

  • @saqlainrazee7772
    @saqlainrazee7772 3 ปีที่แล้ว

    3+5=5+3😂😂😂

  • @a1akash632
    @a1akash632 3 ปีที่แล้ว

    Chammar Jaat hai tum

  • @avydh7731
    @avydh7731 4 ปีที่แล้ว

    Eigh8

  • @mansoorahmed116
    @mansoorahmed116 2 ปีที่แล้ว

    Console.debug('my name is'+myName);

  • @fayazhussain5547
    @fayazhussain5547 4 ปีที่แล้ว +1

    Nicely explained

  • @hope1234-w5e
    @hope1234-w5e 3 ปีที่แล้ว

    sir ma script lekta o but unity may load e ni hota farhan is here and farhan loop be leka but ni accecpt kiya unity ny ma sir 2018.4.20ft unity use kr rha o and visual studio 2017 wala download kiya ha pc i5 3rd generation 4 gb ram ha please ans me

    • @FarhanAqeel
      @FarhanAqeel  3 ปีที่แล้ว

      group me screenshot post krden me dekh leta hn

  • @ManasAgrawal726
    @ManasAgrawal726 ปีที่แล้ว

    3 + 5 = 8

  • @abduksam
    @abduksam 4 ปีที่แล้ว

    8

  • @jfilmsMusic
    @jfilmsMusic 4 ปีที่แล้ว

    8

  • @hamzazafar7999
    @hamzazafar7999 3 ปีที่แล้ว

    8

  • @faizxtergaming3657
    @faizxtergaming3657 3 ปีที่แล้ว

    8

  • @professionalgaming8895
    @professionalgaming8895 3 ปีที่แล้ว

    8

  • @sameerahmed000
    @sameerahmed000 3 ปีที่แล้ว

    8

  • @Tanzeelurehman
    @Tanzeelurehman 3 ปีที่แล้ว

    8

  • @devil_dad6gaming508
    @devil_dad6gaming508 2 ปีที่แล้ว

    8

  • @a_72_saquibsheikh44
    @a_72_saquibsheikh44 2 ปีที่แล้ว

    8

  • @rtxgaming91
    @rtxgaming91 ปีที่แล้ว +1

    8

  • @alfatehcoding
    @alfatehcoding ปีที่แล้ว

    8

  • @hassanzeeshan6228
    @hassanzeeshan6228 ปีที่แล้ว

    8

  • @IMRAN13808
    @IMRAN13808 2 หลายเดือนก่อน

    8