File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
com.unity.netcode.gameobjects/Runtime/Core Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -346,15 +346,14 @@ internal bool IsBehaviourEditable()
346
346
m_NetworkObject . NetworkManager . IsServer ;
347
347
}
348
348
349
- /// <summary>
350
- /// Gets the NetworkObject that owns this NetworkBehaviour instance
351
349
/// TODO: this needs an overhaul. It's expensive, it's ja little naive in how it looks for networkObject in
352
350
/// its parent and worst, it creates a puzzle if you are a NetworkBehaviour wanting to see if you're live or not
353
351
/// (e.g. editor code). All you want to do is find out if NetworkManager is null, but to do that you
354
352
/// need NetworkObject, but if you try and grab NetworkObject and NetworkManager isn't up you'll get
355
353
/// the warning below. This is why IsBehaviourEditable had to be created. Matt was going to re-do
356
354
/// how NetworkObject works but it was close to the release and too risky to change
357
- ///
355
+ /// <summary>
356
+ /// Gets the NetworkObject that owns this NetworkBehaviour instance
358
357
/// </summary>
359
358
public NetworkObject NetworkObject
360
359
{
You can’t perform that action at this time.
0 commit comments