Creating an outline on an object when...

How can I create a outline of a cube lets say. I want to use a mouse hover technique. I am using a 2d view on cubes that are 13 by 13 (yea weird but it looks the best). So the link that I linked to just a second ago was to change all of the renderer. What I want to do is just add an outline to the cube. Most likely a clear yellow color (the cubes are a dark texture).

How would I go about doing that? Also I attached the following script to the cube I am using for this project…

function Update () 
{

}

function OnMouseOver () 
{
    renderer.material.color -= Color(0.1, 0, 0) * Time.deltaTime;
}

I tried it and when I press play and hover my mouse over the cube, nothing happens. (Yes it has a collider). For this to work do I need a ray cast thingy? If so I will need some help because I have never successfully used the ray cast function.

SO in the end I’m asking for some coding help on how to do an outline of a 13x13x1 prism (in a 2d view - so you only see the top of it), as well as how I make it actually work when the mouse is over it (ray cast)?

If all the objects you are going to outline are just cubes you can instantiate a yellow cube with inverted normals (and slightly larger than the dark cubes) to act as an outline.

Do you think you could wrtie an example script to show me how the ray casting works with the instatiateing and what not.