Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 13 Next capture
2021 2022 2023
1 capture
13 Jun 22 - 13 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
This question was closed Jan 06, 2013 at 10:19 AM by Fattie for the following reason:

Question is off-topic or not relevant

avatar image
1
Question by Max Designer · Jan 04, 2013 at 07:28 PM · unity 4

Is unity all about Scripting?

I am new and i am trying to create a main menu, (Note: i don't know any form of Scripting) and i want the text to be highlighted to show that the cursor is hovering over it, do i need to write a script to do so?

Comment
Add comment · Show 4
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image MountDoomTeam · Jan 04, 2013 at 08:23 PM 0
Share

if you're young learning very basic scripting is a really good advantage seeing as you will use computers for the foreseeable future. it doesn't actually take more than 20 $$anonymous$$ to learn a couple of lines of code for the button menu, and scripting of only 2 lines is really easy, and it just builds from that. Once you have spent a couple of weeks learning, you should be able to understand hundred different kinds of lines.

avatar image Max Designer · Jan 04, 2013 at 11:18 PM 0
Share

i tried YouTube but didn't find anything Series on any of the three formats...

avatar image AlucardJay · Jan 06, 2013 at 10:33 AM 1
Share

Although not relevant to your question, here are some links I strongly suggest to all new users :

Start at the bottom and work up : http://www.unity3dstudent.com/category/modules/essential-skills/

Start at the bottom and work up : http://www.unity3dstudent.com/category/modules/beginner/

this is the YouTube link for the above as one playlist : http://www.youtube.com/watch?v=-oXYHNSmTxg&list=PL27B696FB515608D2&feature=plcp


That is good to get started. Then start with a small tutorial, this is a simple 2D space shooter : http://www.unityjumpstart.com/ProofOfConcept_1/ : click on the videos part1.mp4 part2,3,4 =]

I just found another by our own Eric : http://wiki.unity3d.com/index.php?title=2DShooter : http://forum.unity3d.com/threads/7883-2D-shooter-tutorial

By then you should be getting the hang of things and starting to have ideas of your own. When you decide what kind of game you want to make, then look at each part you'll need. For example, if you want to make some terrain then walk around it with a character : http://cgcookie.com/unity/2011/12/05/introduction-to-character-controllers/

Here's another on the same 'site but I havn't checked the difficulty : http://cgcookie.com/unity/2012/02/24/game-planning-lunar-lander-01/

Basically then just search for tutorials, there are many out there, either written or on youtube.

the Unity Wiki tutorials : http://wiki.unity3d.com/index.php/Tutorials

A big list of tutorials : http://answers.unity3d.com/questions/12321/how-can-i-start-learning-unity-fast-list-of-tutori.html

A very helpful 'site, all in C# : http://unitygems.com/

Helpful page with information on using Built-In Arrays and Lists (you'll need this later!) : http://www.unifycommunity.com/wiki/index.php?title=Which_$$anonymous$$ind_Of_Array_Or_Collection_Should_I_Use?

The unity wiki link above is very handy with lots of scripts and shaders too (just check out all the links down the left, and the tabs along the top : http://wiki.unity3d.com/index.php/Scripts )

http://answers.unity3d.com/questions/148211/list-of-frequently-asked-beginners-questions.html

http://forum.unity3d.com/threads/132628-How-to-help-the-Absolute-Beginner

If you know what kind of game you want to make, edit your question and write there what you are thinking of, then there may be a tutorial out there for that!

But just be aware, you will do lots of typing, deleting, typing, bashing head on desk, being really happy when it works and you understand how and why. I hope this helps, Happy Coding =]

avatar image AlucardJay · Jan 06, 2013 at 10:35 AM 1
Share

Regarding scripting, there is a method I heard of but never used for arranging things without scripting, you'll have to do some research, search the Unity Asset Store for Play$$anonymous$$aker

http://www.hutonggames.com/tutorials_game_design_with_playmaker.php

2 Replies

  • Sort: 
avatar image
1
Best Answer

Answer by smirlianos · Jan 04, 2013 at 08:00 PM

If you use a 3d text as the main menu text use this script. Put a box collider on every text and attach the script to every text! in the "play" text, check in the inspector the "play Button" box. When the mouse hovers the text, it will turn to red, and when the mouse leaves the test, it will turn to normal again. When you click it, if it is the "play" button, it will load the next scene, if it is the "quit" button, it will quit the game!

hope I helped!

 var playButton : boolean;
 var quitButton : boolean;
 var optionsButton : boolean;
 
 function OnMouseEnter() {
   renderer.material.color = Color.red;
 }
     
 function OnMouseExit() {
   renderer.material.color = Color.white;
 }
     
 function OnMouseup() {
   if(playButton)
   {
     Application.LoadLevel(1);
   }
   else if(quitButton)
   {
     Application.Quit();
   }
   else if(optionsButton)
   {
     Applicaio.LoadLevel(2);
   }
 }
Comment
Add comment · Show 9 · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image Max Designer · Jan 04, 2013 at 11:14 PM 0
Share

is this a Java Script amd i did this but i don't know how to make it that when you click the button it go to the options menu and thanks

avatar image smirlianos · Jan 05, 2013 at 08:52 AM 0
Share

It's javascript,

if you want to have and a third button that goes to the options scene, add another " if else" in the On$$anonymous$$ouseUp function. I edited my answer to see who it's in the complete form!

(the script works supposing that the options menu is in scene 2, and the play button goes to the scene 1)

Hope i helped!

avatar image smirlianos · Jan 05, 2013 at 08:54 AM 0
Share

Oh, and I forgot! There are some good tutorials on how to make a main menu at this youtube channel.

https://www.youtube.com/watch?v=8Q5y7pHWdlo

avatar image Max Designer · Jan 05, 2013 at 08:57 PM 0
Share

oh i undestand some and i wrote my first script base on what you have i guess the part about Transform... is this right?

var story$$anonymous$$odeButton : boolean; var more$$anonymous$$odesButoon : boolean; var optionsButton : boolean; var helpButton : boolean; var quitButton : boolean;

function On$$anonymous$$ouseEnter()

{ renderer.material.color = Color.blue; transform.localScale += Vector3(0.05,0.05,0); }

function On$$anonymous$$ouseExit()

{ renderer.material.color = Color.white; transform.localScale += Vector3(-0.05,-0.05,0); }

function On$$anonymous$$ouseup()

 {
 if(story$$anonymous$$odeButton);
 Application.LoadLevel(1);
 }
 
 {
 else if(more$$anonymous$$odesButoon);
 Application.LoadLevel(2);
 }
 
 {
   else if(optionsButton);
 Application.LoadLevel(3);
   }
  
   {
    else if(helpButton);
     Application.LoadLevel(4);
   }
  
   {
   else if(quitButton);
 Application.Quit();
   }
avatar image smirlianos · Jan 06, 2013 at 09:53 AM 1
Share

Good work! I wrote your script more clear

 var story$$anonymous$$odeButton : boolean;
 var more$$anonymous$$odesButoon : boolean;
 var optionsButton : boolean;
 var helpButton : boolean;
 var quitButton : boolean;
 
 function On$$anonymous$$ouseEnter() { 
     renderer.material.color = Color.blue;
     transform.localScale += Vector3(0.05,0.05,0); 
 }
 
 function On$$anonymous$$ouseExit() {
     renderer.material.color = Color.white;
     transform.localScale += Vector3(-0.05,-0.05,0);
 }
 
 function On$$anonymous$$ouseup() {
     if(story$$anonymous$$odeButton)
     {
         Application.LoadLevel(1);
     }
     else if(more$$anonymous$$odesButoon)
     {
         Application.LoadLevel(2);
     }
     else if(optionsButton)
     {
         Application.LoadLevel(3);
     }
     else if(helpButton)
     {
         Application.LoadLevel(4);
     }
     else if(quitButton)
     {
         Application.Quit();
     }
 
 }
Show more comments
avatar image
1

Answer by Mr.Z · Jan 04, 2013 at 07:32 PM

It certainly isn't, but it is necesary and in most cases unavoidable. As for highlighting text, check this out: http://forum.unity3d.com/threads/130424-TextField-Highlight-Color

Comment
Add comment · Share
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

Follow this Question

Answers Answers and Comments

12 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

The name 'Joystick' does not denote a valid type ('not found') 2 Answers

Using a maze generator asset from asset store 0 Answers

Can someone help me fix my Javascript for Flickering Light? 6 Answers

Setting Scroll View Width GUILayout 1 Answer

Material doesn't have a color property '_Color' 4 Answers


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges