File tree Expand file tree Collapse file tree 1 file changed +6
-1
lines changed
com.unity.netcode.gameobjects/Runtime/NetworkVariable Expand file tree Collapse file tree 1 file changed +6
-1
lines changed Original file line number Diff line number Diff line change 11using System ;
2+ using System . Runtime . CompilerServices ;
23using UnityEngine ;
34
45namespace Unity . Netcode
@@ -336,7 +337,11 @@ public bool CanClientWrite(ulong clientId)
336337 return clientId == m_NetworkBehaviour . NetworkObject . OwnerClientId ;
337338 }
338339 }
339-
340+ /// <summary>
341+ /// Catches if the current <see cref="NetworkManager.LocalClientId"/> is not valid to write to this variable.
342+ /// </summary>
343+ /// <returns>false if the current <see cref="NetworkManager.LocalClientId"/> can write to this variable, true otherwise</returns>
344+ [ MethodImpl ( MethodImplOptions . AggressiveInlining ) ]
340345 internal bool LocalClientCannotWrite ( )
341346 {
342347 return m_NetworkManager && ! CanClientWrite ( m_NetworkManager . LocalClientId ) ;
You can’t perform that action at this time.
0 commit comments