Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question about adding scripts

Discussion in 'General Discussion' started by FranticThumbs, Mar 5, 2015.

  1. FranticThumbs

    FranticThumbs

    Joined:
    Mar 5, 2015
    Posts:
    51
    Hi all
    First time here in a long time, so be gentle. Right now I am looking through the beginner tutorials to get an idea of using Unity for mobile game development.

    However, I have a question that relates to scripts(for example).

    If I wanted an advertising script like Unity Ads (example), Is there a generic folder it exports to, so if I create 2 projects, I can just drag the script into each project, or must I download it again for project 2?

    Is there a way to create a batch of folders with 'your favourite scripts' in for easy reference to just drag them in when you make a new project, so you automatically can add the basics to your project each time?

    This is on the mac version and I am still kinda new using a mac.
     
  2. bigdaddy

    bigdaddy

    Joined:
    May 24, 2011
    Posts:
    153
    Hi @Jigglybean
    There are a couple of things here. First, most things like Unity Ads won't be one script, they'll be a collection of scripts and files that have to go in certain set places in your project hierarchy. What you want to do is use the Asset Store to download and install these packages. The package installer will make sure everything is put where it needs to be.

    If you have a collection of scripts that are your favorite scripts, you can build your own package and have the package installer import them into your project.

    To make your own package, you can use the menu option Assets -> Export Package
     
    FranticThumbs likes this.
  3. FranticThumbs

    FranticThumbs

    Joined:
    Mar 5, 2015
    Posts:
    51
    Many thanks @bigdaddy