I’m trying to use the transform.LookAt function.
when I use the script example in the reference, it works perfectly,:
transform.LookAt(Vector3.zero);
but when I try to write custom values for the vector, it doesn´t work:
transform.LookAt(Vector3(0,0,0));
error CS0119: Expression denotes a
type', where a
variable’,value' or
method group’ was expected
Am I writing it wrong? how can I get this working?