I have a prefab, and it has a mesh and a light component attached. both components use one transform. I would like to have the light offset (slightly higher, like 0,1,0 ) from the mesh.
I have tried nearly everything to modify just the light's transform, but to no avail. Moving the light's transform manages to modify the entire prefab's.
Is there anyway possible to have an offset on the light?
Other than spliting your object in two, I don't think you can move only the light. On the other hand, you can podify the mesh to move it's vertex in a given direction. Loop on all the vertices, add your Vector3 offset and your good to go (http://unity3d.com/support/documentation/ScriptReference/Mesh.html)
answered Jan 28 '12 at 03:05 PM