Search Unity

  1. Megacity Metro Demo now available. Download now.
    Dismiss Notice
  2. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Little help please :)

Discussion in 'Scripting' started by Braddydawg, Mar 9, 2019.

  1. Braddydawg

    Braddydawg

    Joined:
    Feb 22, 2019
    Posts:
    1
    Hello hope you are all well, I'm sorry to be bothering you all today,

    I started learning to code about a day ago never done it before but I'm planning on making a simple app. Where at the home screen there is an option, to pick things for you to do, Like I could press a button for "What shall I drink" then the next scene loads and with TextMeshPro it should say "Have a nice cup of coffee". I got the Scene loader down when I press the button, But I am not sure how making the next scene load up with a Random sentence already loaded as soon as it loads into the next scene.

    I was kind of hoping to make all the selections random and for all the sentences to be added with [SerializeField] so I don't have to keep changing it in the code but can do with unity and end up with like 20+ options all randomized. Sorry if my explanation isn't clear enough.
     
    Last edited: Mar 9, 2019
  2. Antypodish

    Antypodish

    Joined:
    Apr 29, 2014
    Posts:
    10,754
    Learn section is good starting point, to help pick up basics, regarding Unity.