Skip to content

Commit 5b52d9b

Browse files
authored
feat: providing a public accessor for the NetworkBehaviour of a NetworkVariableBase (#2367)
1 parent 65e176e commit 5b52d9b

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

com.unity.netcode.gameobjects/Runtime/NetworkVariable/NetworkVariableBase.cs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@ public abstract class NetworkVariableBase : IDisposable
1818
/// </summary>
1919
private protected NetworkBehaviour m_NetworkBehaviour;
2020

21+
public NetworkBehaviour GetBehaviour()
22+
{
23+
return m_NetworkBehaviour;
24+
}
25+
2126
/// <summary>
2227
/// Initializes the NetworkVariable
2328
/// </summary>

0 commit comments

Comments
 (0)