Skip to content

Commit 142935b

Browse files
committed
Add summary to DestroyGameObject parameter
1 parent 2420de9 commit 142935b

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

com.unity.netcode.gameobjects/Runtime/Messaging/Messages/DestroyObjectMessage.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ internal struct DestroyObjectMessage : INetworkMessage, INetworkSerializeByMemcp
1111
private const string k_Name = "DestroyObjectMessage";
1212

1313
public ulong NetworkObjectId;
14+
15+
/// <summary>
16+
/// Used to communicate whether to destroy the associated game object.
17+
/// Should be false if the object is InScenePlaced and true otherwise
18+
/// </summary>
1419
public bool DestroyGameObject;
1520
private byte m_DestroyFlags;
1621

@@ -30,7 +35,7 @@ internal bool IsTargetedDestroy
3035
set => SetFlag(value, k_ClientTargetedDestroy);
3136
}
3237

33-
internal bool IsDeferredDespawn
38+
private bool IsDeferredDespawn
3439
{
3540
get => GetFlag(k_DeferredDespawn);
3641

0 commit comments

Comments
 (0)