Easy Skidmarks Setup Package Using Unity Car Tut. Assets
Hey there guys,
Yesterday while making a racing game i thought about adding skidmarks to my game, which led me to the Unity Car Tutorial. It took me quite a long time to figure out how it worked as i am a beginner at scripting. At last i was able to use it properly. So I decided to provide an easy skidmarks setup package to others like me.
** The assets used are not mine and belong to their respective owners. I only made the Wheel Skidmarks script to help add skidmarks. **
If you know how to import package, import it and skip to step 4
Go to Assets > Import Package > Custom Package
Browse to the downloaded package (extracted from the rar file), select it and click open.
Make sure all the files are checked and click import.
Go to the ‘Easy Skidmarks Setup’ folder and drag the ‘Skidmarks’ prefab to the scene.
** No need for it to be at the origin as the script handles it **
Go to your wheel colliders and add the ‘Wheel Skidmarks’ script to each collider.
The ‘Wheel Skidmarks’ script have a variable called ‘Skid Caller’. Assign that object of the car which has a rigidbody attached to it (usually the topmost parent object of the car).
Notes on the variables have been provided in the scripts. It works with unity free.
*It works only with the cars using wheel collider setup but can be modified for use with custom ones.
The prefabs are empty. I mean they are straight null objects. I don’t think I can use it? So what exactly did the prefab contain, maybe I can manually recreate it. I’m using Unity 3.56 btw. Actually now it’s crashing my project without opening…some error about “meta data”?
Hmm James,
I tested it 3 times again using the downloaded package in separate projects and it works nicely. Could be because of your old unity ver.
as I am using Unity 4 and it compiled the scripts to that version when i imported it from the car tut.
Ok. Are all the files imported successfully?
the list is:
Easy Skidmarks Setup (folder)
→ Skidmarks (prefab)
→ Wheel Skidmarks (jScript)
→ Skidmarks Essentials(folder)
->Skidmarks (jScript)
->Skidmarks (psd Texture)
->Skidmarks (Shader)
->Skidmarks (Material)
To do it manually,
Create an empty game object an add Skidmarks Essentials > Skidmarks (jscript) to it. (It should automatically add a mesh filter and a renderer)
**** Name the Empty Game Object ‘Skidmarks’ (Case Sensitive) *******
Create a new material anywhere in your project and set its shader to ‘skidmarks’. Assign the black psd texture to its texture.
In the Skidmarks object renderer > materials >size to 1 and assign the above material to it.
then follow steps 5 and 6 from the main post.
If it does not help, I think you have to search it in the unity car tutorial manually. I’m sorry. Why don’t you switch to unity 4?
I do believe it’s because I’m using Unity 3.56 and it won’t work in it. I’ve seen similar issues with stuff built for Unity 4.0 and it just causes weird errors in the 3.5x versions.
=========================================
Ok, Guys,
I had to add the steps manually, but I, indeed, did get it to work. It looks great. I am using Unity 4.0 Pro,
and the install steps added everything but I had to follow the manual install steps… THANKS
Are you still here? I still get confused with the comments in the script. Can you add a boolean function? It will be turned on by another script. If the bool is true, it will forcefully add a skidmesh. It’s for my car when doing burnouts.