NotesWhat is notes.io?

Notes brand slogan

Notes - notes.io

Key things for programming: 'int' - non-decimal point digits, 'float' - digits with decimal points, 'bool' - true or false.
void update() //updates every frame
void OnTriggerEnter(Collider 'ANY NAME') { if ('ANY NAME'.CompareTag ("TAG NAME")) { Debug.Log ("ANYTHING!")}}; //when this object meets the other object, it writes ANYTHING! in the commands bar


'ANYTHING'Script.GetComponent<'SCRIPT NAME'>.'COMPONENT NAME'();
Then you drag the script you are referring to into the 'ANYTHING'Script
//this is how to get one component to another script but first, you have to add the word 'public' before the word 'void' in the command
Link if you are struggling: https://www.youtube.com/watch?v=AmbtfKfhSr8


if(Input.GetButtonDown("ANY BUTTON") //if that key is pressed, the function will only be activated once.
if(Input.GetButton("ANY BUTTON") //if that key is pressed and you hold it, the function will repeat over and over
(Input.GetButtonUp("ANY BUTTON") //if that key is pressed, the function would not work until the key goes up an will activate only once.
if(Input.GetButtonDown("TB") //this is not a key, it is pretty much a string. Go to Edit, Project setting, Input. add 1 to the number you have. set the name to the TB or something else. Set the button to whatever you want and get rid of Alt Positive Number. The type should be key or mouse button. Now when you press the button you set the TB or something else to be, it's function will run. You can make multiple letters do the same thing, for example, you can make 'a' and the left arrow do the same action.

How to make objects disappear: public GameObject 'ANYTHING';
blah (blah (blah)) { 'ANYTHING'.SetActive(false); //this command makes the object you are referring to disappear as you are de-activating it by making it being active to false
now you put the object you want to disappear into the space called 'ANYTHING' and you're finished.
you can also make the object you are using as a trigger to disappear as well by adding another command:
this.'ANYTHING'.SetActive(false);



     
 
what is notes.io
 

Notes.io is a web-based application for taking notes. You can take your notes and share with others people. If you like taking long notes, notes.io is designed for you. To date, over 8,000,000,000 notes created and continuing...

With notes.io;

  • * You can take a note from anywhere and any device with internet connection.
  • * You can share the notes in social platforms (YouTube, Facebook, Twitter, instagram etc.).
  • * You can quickly share your contents without website, blog and e-mail.
  • * You don't need to create any Account to share a note. As you wish you can use quick, easy and best shortened notes with sms, websites, e-mail, or messaging services (WhatsApp, iMessage, Telegram, Signal).
  • * Notes.io has fabulous infrastructure design for a short link and allows you to share the note as an easy and understandable link.

Fast: Notes.io is built for speed and performance. You can take a notes quickly and browse your archive.

Easy: Notes.io doesn’t require installation. Just write and share note!

Short: Notes.io’s url just 8 character. You’ll get shorten link of your note when you want to share. (Ex: notes.io/q )

Free: Notes.io works for 12 years and has been free since the day it was started.


You immediately create your first note and start sharing with the ones you wish. If you want to contact us, you can use the following communication channels;


Email: [email protected]

Twitter: http://twitter.com/notesio

Instagram: http://instagram.com/notes.io

Facebook: http://facebook.com/notesio



Regards;
Notes.io Team

     
 
Shortened Note Link
 
 
Looding Image
 
     
 
Long File
 
 

For written notes was greater than 18KB Unable to shorten.

To be smaller than 18KB, please organize your notes, or sign in.