I have an object testing for line of sight to another object and they both need to be on the same layer, so layer-masking doesn't seem to be a solution. The colliders of both objects are not set to IsTrigger, so the Ecosystem action to linecast ignoring triggers doesn't seem to be a solution either. At the moment, the object is returning itself as the hit object, regardless. This must be a common problem. Any help would be greatly appreciated.
(Aside: I can't understand why it isn't a default for an object to ignore its own collider - when would it be useful to test if an object is in its own line of sight? Surely either it always is or it never is, depending how you work it.)