Skip to content

Commit 25d341c

Browse files
authored
fix: Add require component attribute to network navmesh agent. (#615)
1 parent 05206d6 commit 25d341c

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

com.unity.multiplayer.mlapi/Prototyping/NetworkNavMeshAgent.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ namespace MLAPI.Prototyping
1010
/// A prototype component for syncing NavMeshAgents
1111
/// </summary>
1212
[AddComponentMenu("MLAPI/NetworkNavMeshAgent")]
13+
[RequireComponent(typeof(NavMeshAgent))]
1314
public class NetworkNavMeshAgent : NetworkBehaviour
1415
{
1516
private NavMeshAgent m_Agent;

0 commit comments

Comments
 (0)