making my vector local

I want to make my new vector apply locally. This however doesn’t work, says dirL is not a member of UnityEngine.Transform.

var dirL = new Vector3 (Mathf.Cos(0.3), 0f, Mathf.Sin(0.25));

Debug.DrawRay (transform.position, transform.dirL* 5, Color.green);

transform.forward works, and forward is the same as Vector3 (0, 0, 1) but I can’t seem to make transform.Vector3 to work. Thanks in advanced.

transform is a Transform object. Transform has a data member called ‘position’. YOU made the Vector3 dirL.

Debug.DrawRay (transform.position, dirL* 5, Color.green);

The following link will show you how to make a world-space vector local.
http://unity3d.com/support/documentation/ScriptReference/Transform.InverseTransformDirection.html