class MockPlayConfiguration (Niantic.ARDK.VirtualStudio.MockPlayConfiguration)

Overview

class MockPlayConfiguration: ScriptableObject {
public:
    // properties

    MockArdkPlayerProfile[] ActiveProfiles;
    IReadOnlyCollection<MockArdkPlayerProfile> Profiles;

    // methods

    void ConnectAllPlayersNetworkings(byte[] sessionMetadata);
    MockPlayer GetPlayerWithPeer(IPeer peer);
    void RunAllPlayersARSessions(IARConfiguration arConfiguration = null);

    void SetInspectorValues(
        List<MockArdkPlayerProfile> profiles,
        GameObject playerPrefab
    );
};

Detailed Documentation

Methods

void ConnectAllPlayersNetworkings(byte[] sessionMetadata)

Invokes the Join method on all the active players’ IMultipeerNetworking components.

Parameters:

sessionMetadata

Metadata of session to join.

MockPlayer GetPlayerWithPeer(IPeer peer)

Returns the MockPlayer that owns the MultipeerNetworking session that the input peer is the local (“self”) peer of.

Parameters:

peer

void RunAllPlayersARSessions(IARConfiguration arConfiguration = null)

Invokes the Run method on all the active player’s IARSession components.

Parameters:

arConfiguration

ARConfiguration to run with.

void SetInspectorValues(
    List<MockArdkPlayerProfile> profiles,
    GameObject playerPrefab
)

Initialize method for when when a non-Inspector defined MockPlayConfiguration is needed.

Parameters:

profiles

playerPrefab