We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents c8fab06 + 98dbffc commit 393a1e4Copy full SHA for 393a1e4
Assets/FishNet/Runtime/Object/NetworkBehaviour/NetworkBehaviour.cs
@@ -60,6 +60,7 @@ public byte ComponentIndex
60
/// NetworkObject this behaviour is for.
61
/// </summary>
62
public NetworkObject NetworkObject => _networkObjectCache;
63
+ public static implicit operator NetworkObject(NetworkBehaviour nb) => nb._networkObjectCache;
64
#endregion
65
66
#region Private.
0 commit comments