com.unity.netcode.gameobjects icon indicating copy to clipboard operation
com.unity.netcode.gameobjects copied to clipboard

NetworkAnimator.Awake is a private method

Open desoro opened this issue 1 year ago • 1 comments

Issue:

NetworkAnimator.Awake is a private method. As the class is expected to be inherited from, OnIsServerAuthoritative for example, you should never make Unity messages private.

Resolution:

private Awake() => public virtual void Awake()

desoro avatar Dec 18 '23 13:12 desoro

Even though the typical declaration for this is considered private (default when you create a new script), you make a good point and it should be made either public or at a minimum protected. This change will make it in the update after the coming v1.8.0 update. 👍

NoelStephensUnity avatar Dec 31 '23 18:12 NoelStephensUnity