A Unity ID allows you to buy and/or subscribe to Unity products and services, shop in the Asset Store and participate in the Unity community.
Separate names with a comma.
Adding a rig transform to the animated parent object can fix this issue.
EDIT: Range was set to zero. Thanks for the help. PSA: Set your range.
Ah, yes. I had switched them by accident. Either way, the ray is still clearly hitting the other object and not giving a response.
For some reason, the following code never detects a raycast. I've checked the debug lines, and the other object is clearly being hit and has a...
I get that this is an old post, but if anyone is looking for a simplified solution, here it is: if (Input.GetKeyDown(KeyCode.Tab)) {...
I've also been having this issue, nothing above helped.
Edit: Upgrading to 2020.3.19 LTS fixed the issue
Also have been getting this issue. For me it occurs especially when opening the animator tab while running game.
Note for anyone confused by this: using the cinemachine namespace is required to use this code correctly.