How To Pass a Text From Scene1 ➡ Scene2 - Unity C# 2021

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

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

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

    Thank you so much for the walk through, helped me understand the concept much clearer.

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

    Pleasee can you make a video that how to make a coin system that every time a gameobject is pressed add 1 coin to the text UI and pass the texts data to Homepage scene

  • @MaestroMarc
    @MaestroMarc 6 หลายเดือนก่อน

    Is the panel on another layer? What's the different between a panel and the canvas?

  • @adhishparanjothi
    @adhishparanjothi 3 ปีที่แล้ว +6

    anyone here from Unity Coding tutorial assignment?

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

    I want to ask please in response there is an error in my coding like this NullReferenceException: Object reference not set to an instance of an object
    InputName1.Awake() (at Assets/InputName1.cs:16)

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

      same error comes to me what did u do??

    • @Beverly-pg9ex
      @Beverly-pg9ex 2 ปีที่แล้ว +1

      @@techplatform5100 Hi! If you still need help: you just have to fill in all your GameObjects in your SceneManager. So if you inport the script in your SceneManager you will have to drag and drop your GameObjects :)

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

    I managed to save the name i entered in the input field but i can't dispay it on the main scene. I need to do this for the Unity Learn's Create With Code Mission project

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

      Hi i am also doing the module on Unity Learn. When he did the second awake method I put that in the MainManager Script. Hope that helps.

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

      th-cam.com/video/2liZtyMhIQQ/w-d-xo.html&ab_channel=JimmyVegas
      This helped me with that problem

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

    Thank you for the explanation !

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

    Thank you so much brother!

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

    Hello sir thankyou for your tutorial but ive been tried submitting without input text it also move to scene 2 . , Please reply sir

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

    HOW CAN WE UNLOCK ALL THE LEVELS USING A SINGLE BUTTON LIKE FOR IAP

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

    OMG, thank you so much!

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

    Yow this is great! What would be the case if i wanted to change the username again when going back to scene1. I am saying this because there is a missing component which is the input field to enter the text when you want to change your username going back to scene 1. Does this statement make sense? Hope it does!...

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

    Hey. I want to show this text for 5 seconds only. So how can I do that?

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

    THAAANNKKKK YOIUUUUUUU BROOOO

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

    thank you very very much

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

    If this is a way to send parameters - I have no words. :)

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

    hey do you know how to code, shooting by hold down touch? whitout a button?

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

      Hi @xlmRiisky, I have not it before but I can look into it for you.

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

      @@theultimatedeveloper4736 that would be nice thanks, do u have discord or something?

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

      @@Memejuiice Not currently. Just a Facebook page but will up discord soon. Also please don't forget to hit that subscribe button.

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

      @@theultimatedeveloper4736 sure i did, did u found something?

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

      @@Memejuiice I will make a video and post soon on how you can achieve this.

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

    Very informative, however what I am after is, when a scene1 loads a scene 2 on a button click, on scene2, I want to populate a inputfield with some text. The problem is, the code that populates the inputfield is dying since it has not yet been instantiated, so I get a "Null reference..." error message. Not sure how to handle this . :(

    • @VAR-jd2qt
      @VAR-jd2qt ปีที่แล้ว

      Hello! I'm getting the same error and I was wondering if you found a way to solve it? It would be very helpfull if you colud tell me it. Thanks!

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

    Thank you!

  • @unityvr-j8x
    @unityvr-j8x 11 หลายเดือนก่อน

    thaks bro

  •  3 ปีที่แล้ว

    Assets\scripts\MainMenu.cs(9,19): error CS0246: The type or namespace name 'Scene1' could not be found (are you missing a using directive or an assembly reference?)

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

      Please Check Your Scene name by going in File/build settings

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

    GRANDEEEEE

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

    OMG you saved my life

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

    Hopefully i get a response, what if i want to transfer a text from scene 1 (skipping scene 2) to scene 3, how to i go about it? Also if i have multiple textmeshpro and i want to have it displayed in scene 3

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

    Does the name remain registered when the game is closed?

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

    Niice

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

    OMG do NOT create static references to monobehaviours

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

    Thank you
    private void Awake()
    {
    //Start of code
    if (Instance != null)
    {
    Destroy(gameObject);
    return;
    }
    //end of code
    Instance = this;
    DontDestroyOnLoad(gameObject);

    }