|
okey so i found a random script for raycasting it keeps saying unknown identifier "localoffset" so like what should it be?
(comments are locked)
|
|
Assuming you want the origin of the ray to be the game object this script is attached to, then it should just be a matter of replacing localOffset with transform.position (twice) BCE0020: An instance of type 'UnityEngine.Transform' is required to access non static member 'position'.
Sep 08 '11 at 05:35 AM
sam32x
transform has a lowercase t.
Sep 08 '11 at 05:57 AM
andrew
cool no errors now :D
Sep 08 '11 at 08:33 AM
sam32x
(comments are locked)
|
