Class NetworkVariablePermissionTests
Inheritance
NetworkVariablePermissionTests
Assembly: solution.dll
Syntax
public class NetworkVariablePermissionTests : NetcodeIntegrationTest
Constructors
NetworkVariablePermissionTests(HostOrServer)
Declaration
public NetworkVariablePermissionTests(NetcodeIntegrationTest.HostOrServer hostOrServer)
Parameters
Properties
NumberOfClients
Declaration
protected override int NumberOfClients { get; }
Property Value
Overrides
Methods
ClientCannotChangeServerWritableNetVar()
Declaration
[UnityTestAttribute]
public IEnumerator ClientCannotChangeServerWritableNetVar()
Returns
ClientChangesOwnerWritableNetVar()
Declaration
[UnityTestAttribute]
public IEnumerator ClientChangesOwnerWritableNetVar()
Returns
ClientOwnerWithReadWriteChangesNetVar()
This tests the scenario where a client owner has both read and write
permissions set. The server should be the only instance that can read
the NetworkVariable. ServerCannotChangeOwnerWritableNetVar performs
the same check to make sure the server cannot write to a client owner
NetworkVariable with owner write permissions.
Declaration
[UnityTestAttribute]
public IEnumerator ClientOwnerWithReadWriteChangesNetVar()
Returns
OnServerAndClientsConnected()
Invoked after the server and clients have started and verified
their connections with each other.
Declaration
protected override IEnumerator OnServerAndClientsConnected()
Returns
Overrides
OnServerAndClientsCreated()
This is invoked before the server and client(s) are started.
Override this method if you want to make any adjustments to their
NetworkManager instances.
Declaration
protected override void OnServerAndClientsCreated()
Overrides
ServerCannotChangeOwnerWritableNetVar()
Declaration
[UnityTestAttribute]
public IEnumerator ServerCannotChangeOwnerWritableNetVar()
Returns
ServerChangesOwnerWritableNetVar()
Declaration
[UnityTestAttribute]
public IEnumerator ServerChangesOwnerWritableNetVar()
Returns
ServerChangesServerWritableNetVar()
Declaration
[UnityTestAttribute]
public IEnumerator ServerChangesServerWritableNetVar()
Returns
TestDataSource()
Declaration
public static IEnumerable<TestFixtureData> TestDataSource()
Returns