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.

Car Tutorial - Trying to isolate the prefab

Discussion in 'Editor & General Support' started by Grady Lorenzo, Feb 3, 2011.

  1. Grady Lorenzo

    Grady Lorenzo

    Joined:
    Jan 18, 2010
    Posts:
    407
    Ok so I spent about ten minutes trying to get the car from Unity's car tutorial isolated so that I could export it as a package with all of it's dependencies. When I try to import that package into another project, Unity complains about skidmarks and such. Moreover, the scripts are on the prefabs (Lambo, Peugeot, basic car), and all the variables are exposed in the Inspector when I select the prefab in the Project pane. But if I drag that prefab into the Hierarchy pane, the scripts are still attached, but none of the variables are exposed...

    What to do? I really like this physics model, and I'd love to use it. Changing out the mesh, I will obviously do, but the physics model is something I am not skilled enough to create on my own, be it that physics model or any other...

    PLEASE HELP!!
    thanks.
     
  2. Grady Lorenzo

    Grady Lorenzo

    Joined:
    Jan 18, 2010
    Posts:
    407
  3. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    I'd like to know as well how to create a package from that car! Anyone any idea?
     
  4. coin-god

    coin-god

    Joined:
    Jan 21, 2010
    Posts:
    325
    mediafire, rapidshare, megaupload, etc
     
  5. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    I tried creating a package from the car tutorial, but to the same result as lorenzo.. All dependancies are there, but the included prefab doesn't seem to work in other projects; no scripts attached, just mono scripts.. And no model.. Is it even possible to use a prefab in a different project?
     
  6. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    Thanks for that, I got a Lot further into correctly exporting a Car package from the tutorial.. I don't got it 100%, but it drives correctly:

    Here's a link: Main Car from Car Tutorial

    It's the standard car from the tutorial. After importing, pull the Car prefab into your scene or hierarchy, and attach the car.js script to your main camera (set the target to car)..


    2 things with this package:

    *)I get the error "No skidmarks objects found. Skidmarks will not be drawn". I've double checked and all skidmark files I could find in the tutorial are there..

    *) The brake light's don't work. No error''s, and Brake Lights do have the correct target..


    Anybody any idea's on why these two things aren't working? Let's make that packege 100% working order, so nobody needs to digg for a day or so, just to import a car into their project..
     
    Last edited: Apr 2, 2011
  7. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    Ok,yeah i saw some nice scripts on that GMC. Could you perhaps make a proper working asset of one of those, amd put it on mediafire? I can't seem to figure those skidmarks on the basic car..

    Thanks in advance!
     
  8. PizzaGuy213

    PizzaGuy213

    Joined:
    Nov 23, 2010
    Posts:
    305
    That works perfectly! Thanks man
     
  9. fvasc9

    fvasc9

    Joined:
    Mar 10, 2011
    Posts:
    36
    Hello,

    I have a problem, how to put brake lights on alternatephysics?:confused:

    Tnks.
     
  10. bgmann

    bgmann

    Joined:
    May 14, 2013
    Posts:
    2
    The post with the answer that everyone is referring to has been deleted? The fuq? I'm having problems exporting a prefab of a android camera rig to use in my other projects and found pointers to this thread. I even remember this thread the last time I had to fgure this out. So, great, the answer that everyone has been referencing on this subject for 2 years now is gone.
     
unityunity