class MockPlayer (Niantic.ARDK.VirtualStudio.MockPlayer)
Overview
class MockPlayer { public: // properties IARNetworking ARNetworking; IARSession ARSession; GameObject GameObject; bool IsLocal; string Name; IMultipeerNetworking Networking; // methods void SetMessageHandler(MessageHandlerBase handler); void SetPeerState(PeerState state); void SetPlayerObject(GameObject playerObject); override string ToString(); string ToString(int identifierLength); };
Detailed Documentation
Methods
void SetMessageHandler(MessageHandlerBase handler)
Inject a custom MessageHandlerBase implementation for this player to handle network messages through. If a custom one is not set, a default message handler that prints messages to the console will be used.
Parameters:
handler |
void SetPlayerObject(GameObject playerObject)
Associates the input GameObject with this MockPlayer. If this MockPlayer has an ARNetworking session, the transform of the GameObject will be used as the peer's pose.
Parameters:
playerObject |