it's not java, it's javascript, different than the browser-based one. In Unity, it's not really javascript, its Unityscript, though called javascript (i dont know why). C# is more advanced and you can make more precise code and perhaps it's easier and quicker when you learn it, I don't know, I'm sticking with javascript, simpler, and is good enough to make a simple third-person shooter or RPG.
I am trying to make the new game button work but even when i add the second scene to the build settings it still wont work it keeps coming up with the same error message. I have tried building the game but surprisingly the problem persisted. Is there anything else i can do to solve this problem?
I have a custom texture which acts as a background. 12 buttons (4x3) overlap this background, each must be spaced equally, but not all will be shown at once, and they must all stay in their own position.
The background image is scaled according to the resolution. How do I get each button to stay at a location relative to the background regardless of the background's scale? :S
I've been trying to take percentages but my background image has a border of 'deadspace' which makes it difficult.
I like the way by buttons work, I just want them to load Application.LoadLevel "6foot" "60foot" and "100foot" My Scenes are in the Build window by the names mentioned above. Im just so freekin tiered I cant think anymore. also I tried the "if( GUIContent" and the ver's ther not working ether. I was hoping you would finish tut 4 part 3 what am I missing? Thanks for your help. below is my script.
if i had to learn a scripting language, what would be best, what is easiest, what is most popular/used most, which one is faster, i want it to work with untity, what has the most features
what if would like to do the same thing but with a text instead of a button?
hutzification 2 months ago
6:12 I got an error: (The whole message was over 600 letters so I can't post it here.)
MissingMethodException: Method not found: 'UnityEngine.GUILayout.button'.
Boo.Lang.Runtime.DynamicDispatching.MethodDispatcherFactory.ProduceExtensionDispatcher ()
Drathine 3 months ago
yellow is not ugly !!!
taha22199507 5 months ago
how do you make the games that you can have continues and loads and saves on it?
pollie441 6 months ago
it's not java, it's javascript, different than the browser-based one. In Unity, it's not really javascript, its Unityscript, though called javascript (i dont know why). C# is more advanced and you can make more precise code and perhaps it's easier and quicker when you learn it, I don't know, I'm sticking with javascript, simpler, and is good enough to make a simple third-person shooter or RPG.
number1234ification 7 months ago
This has been flagged as spam show
I am trying to make the new game button work but even when i add the second scene to the build settings it still wont work it keeps coming up with the same error message. I have tried building the game but surprisingly the problem persisted. Is there anything else i can do to solve this problem?
lamears 7 months ago
Comment removed
lamears 7 months ago
maar dat wil bij mij maar niet werken
kan dat liggen aan dat ik windows heb en geen mac
taha22199507 9 months ago
I have a custom texture which acts as a background. 12 buttons (4x3) overlap this background, each must be spaced equally, but not all will be shown at once, and they must all stay in their own position.
The background image is scaled according to the resolution. How do I get each button to stay at a location relative to the background regardless of the background's scale? :S
I've been trying to take percentages but my background image has a border of 'deadspace' which makes it difficult.
Ceonsamea 9 months ago
thanks so much man, so helpful :)
joe812rox 11 months ago
very informative and helpful! also very humorous. Perfect for me!!!
superchan51020 1 year ago
Do you recommend any books or resources to fully learn JavaScript inside of Unity 3D? Please reply, thanks.
slushfilmz 1 year ago
Great video, saved me a lot of time. Thanks!
frenchscat 1 year ago
ur a really good tutor
lumanthehotmale 1 year ago
I like the way by buttons work, I just want them to load Application.LoadLevel "6foot" "60foot" and "100foot" My Scenes are in the Build window by the names mentioned above. Im just so freekin tiered I cant think anymore. also I tried the "if( GUIContent" and the ver's ther not working ether. I was hoping you would finish tut 4 part 3 what am I missing? Thanks for your help. below is my script.
kpeel1357 1 year ago
function OnGUI () {
GUI.Box (Rect (10, 10, 100, 120), "SELECT");
GUI.Button (Rect (10, 30, 100, 20), GUIContent ("Elevation 6'"));
GUI.Button (Rect (10, 60, 100, 20), GUIContent ("Elevation 60'"));
GUI.Button (Rect (10, 90, 100, 20), GUIContent ("Elevation 100'"));
}
}
kpeel1357 1 year ago
if i had to learn a scripting language, what would be best, what is easiest, what is most popular/used most, which one is faster, i want it to work with untity, what has the most features
samm565 1 year ago
@samm565 Start with JavaScript, then switch to C# once you've got the basics.
infiniteammoinc 1 year ago
@infiniteammoinc alright then, i wont learn now, but i might do that for the future
samm565 1 year ago
@infiniteammoinc i can see why java would be easier, but what is better with C#?
tarrizzzzzzzzz 7 months ago
Please, can you load up this project and share it with us? I don't understand some things :(
mauricepape 1 year ago
could this be used to make upgrade games, like make a screen where you can buy bombs or guns?
Mattchu1995 1 year ago
@Mattchu1995 That's up to you. You can turn it into whatever you want!
infiniteammoinc 1 year ago
@infiniteammoinc if(GUI.Button(Rect(450, 200, 200, 100), "New Game")) 450, 200 is the center
justin8567a 1 year ago
Great video, thanks for the help! Looking forward to the next one.
SnowflakePillow 1 year ago
Could you explain how to make a loading screen in one of these tutorials? Thanks
fusobotic 1 year ago
Cant wait for the next one
neolode 1 year ago
if anyone is wondering how to make exit application the function is
Application.Quit();
it only works when your scene is build cause it wont exit in editor ;)
Beady2 1 year ago
@Beady2 It doesn't work in the editor, it will only work when you build the game.
steamisM50 1 year ago