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

Поделиться
HTML-код
  • Опубликовано: 5 янв 2025

Комментарии • 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 7 месяцев назад

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

  • @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 :)

  • @bonfaceosuka
    @bonfaceosuka Год назад

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

  • @bloomyfractal3585
    @bloomyfractal3585 3 года назад

    Thank you for the explanation !

  • @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 3 года назад +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

      ruclips.net/video/2liZtyMhIQQ/видео.html&ab_channel=JimmyVegas
      This helped me with that problem

  • @pcrpsuniverse9118
    @pcrpsuniverse9118 2 года назад

    Thank you so much brother!

  • @jesalonboard
    @jesalonboard 2 года назад +1

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

  • @suicune2001
    @suicune2001 3 года назад

    OMG, thank you so much!

  • @dokaesoon
    @dokaesoon Год назад

    thank you very very much

  • @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!

  • @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

  • @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.

  • @mariovalerio7596
    @mariovalerio7596 3 года назад

    Thank you!

  • @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!...

  • @hyperadoi
    @hyperadoi 3 года назад +3

    THAAANNKKKK YOIUUUUUUU BROOOO

  • @unityvr-j8x
    @unityvr-j8x Год назад

    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 3 года назад

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

  • @lotierm
    @lotierm Год назад

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

  • @juanribot2912
    @juanribot2912 3 года назад

    GRANDEEEEE

  • @gnosisi
    @gnosisi 3 года назад

    OMG you saved my life

  • @adhishparanjothi
    @adhishparanjothi 3 года назад +6

    anyone here from Unity Coding tutorial assignment?

  • @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?

  • @jefferychow4765
    @jefferychow4765 Год назад +1

    OMG do NOT create static references to monobehaviours

  • @seller5311
    @seller5311 3 года назад +2

    Niice

  • @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);

    }