Unity Networking

Some quick notes for myself and others with similar needs or forgetful minds.

Error - No Suitable Method Found

You have already imported Unity’s Networking package

using UnityEngine.Networking;

but you are getting “onStartLocalPlayer no suitable method found to override”. This error is easy to fix, simply inherit from MonoNetwork rather than MonoBehaviour.

From This:

using UnityEngine;
using System.Collections;

public class PlayerFourWayMovement : MonoBehaviour {

}

To This:

using UnityEngine;
using System.Collections;
using UnityEngine.Networking;

public class PlayerFourWayMovement : NetworkBehaviour {

}

Helpful Resources

  • Thanks to Caezar V. De Castro II (for posting video, much better quality than the one I have from the RoadShow)

    NetworkTankTutorial

  • Thanks to Asbjørn Thirslund

    Making a Multiplayer FPS in Unity