@ExNull-Tyelor Good point. Actually you could even shadow the public method, without the need for virtual
, since Unity relies on reflection to call LateUpdate
(rather than calling no-op virtual methods in MonoBehaviour
). So the following code also works as intended:
public class CustomBoneFollower : BoneFollower
{
public Vector3 offset;
new public void LateUpdate()
{
base.LateUpdate();
this.transform.localPosition += offset;
}
}
Nevertheless, such a solution does not feel quite right, so we will change this method to virtual
on the 4.2-beta branch going forward (since it's API breaking, it can't be included in the 4.1 branch).