Search Unity

Dumb Question

Discussion in 'Scripting' started by podperson, Jun 14, 2006.

  1. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    Suppose I have some random object in the editor and I want to add scripted behavior to it. How do I do this? I understand I can drag an existing behavior onto it...
     
  2. Aras

    Aras

    Unity Technologies

    Joined:
    Nov 7, 2005
    Posts:
    4,770
    1. Create the new script (Assets->Create->...)
    2. Write the script
    3. Drag it onto object in the scene or hierarchy view. Alternatively, select the object and do Component->Scripts->[your script].
     
  3. podperson

    podperson

    Joined:
    Jun 6, 2006
    Posts:
    1,371
    For some reason this eluded me! Thanks :)