TransformPoint not working

SO I am getting an error MissingMethodException: Method not found: ‘UnityEngine.Transform.TransformPoint’.
as the link shows the function clearly exists.

The line of code I am using is: = object.transform.TransformPoint(script.cameraPoint);

object is a GameObject, script is a script with a variable cameraPoint : Vector3

Is your variable really named object? That might be causing some conflicts.

I figured it out, pretty silly error. It was Java’s dynamic typing. Just had to cast everything including across in the other script and then it worked. Pretty lame that it doesn’t mention the arguments don’t match in the error message.