Project configuration settings specific to how the Simulation class behaves. More...
Public Types | |
enum class | DataConsistency |
enum class | InputTransferModes |
enum class | SimulationTimeMode |
The time mode that the NetworkRunnerUpdaterDefault uses to calculate the delta time for the simulation update. More... | |
Public Attributes | |
bool | HostMigration |
If, in host mode, we should allow host migration if the current host leaves. More... | |
int | InputDataWordCount |
Input Data Word Count More... | |
InputTransferModes | InputTransferMode |
The way which input is transferred More... | |
byte | MaxObjectDestroysSentPerPacket = 32 |
The amount of object destroys Fusion sends per packet. Increasing this value means Fusion prioritizes sending more destroys before regular state changes. Setting this value to 255, can help with problems when unloading scenes with many runtime spawned objects (such as Spawned/Despawned being called on those objects multiple times). More... | |
DataConsistency | ObjectDataConsistency |
How the server chooses to send NetworkObject updates to balance consistency and bandwidth consumption. More... | |
int | PlayerCount = 10 |
The default number of players allowed to join a game instance. Can also be changed in code when starting Fusion. More... | |
NetworkProjectConfig.ReplicationFeatures | ReplicationFeatures = NetworkProjectConfig.ReplicationFeatures.Scheduling |
Scheduling is the default. More... | |
SimulationTimeMode | SimulationUpdateTimeMode = SimulationTimeMode.UnscaledDeltaTime |
The time mode that the Runner uses to update the simulation. More... | |
TickRate.Selection | TickRateSelection = TickRate.Default |
The default tick rate to use. Can also be changed in code when starting Fusion. More... | |
Topologies | Topology |
The topology used More... | |
Properties | |
bool | AreaOfInterestEnabled [get] |
Signal if AOI is enabled More... | |
int | InputTotalWordCount [get] |
bool | SchedulingEnabled [get] |
Signal if scheduling is enabled More... | |
bool | SchedulingWithoutAOI [get] |
Signal if scheduling is running without AOI More... | |
Project configuration settings specific to how the Simulation class behaves.
|
strong |
Enumerator | |
---|---|
Full | When a NetworkBehaviour's data changes, the server will send all properties whose changes have not been acknowledged. This option consumes more bandwidth, but guarantees that each NetworkBehaviour has consistent state. |
Eventual | When a NetworkBehaviour's data changes, the server will only send the newly changed properties. This option consumes less bandwidth, but a NetworkBehaviour may have inconsistent state at times (some properties up-to-date but not others). |
|
strong |
|
strong |
The time mode that the NetworkRunnerUpdaterDefault uses to calculate the delta time for the simulation update.
Enumerator | |
---|---|
UnscaledDeltaTime | Use Time.UnscaledDeltaTime. Time is not affected by timescale and keeps running when the editor is paused. |
DeltaTime | Use Time.DeltaTime. Only for GameMode.Single. Can be used to allow for timescale changes in gameplay or to pause the game and continue without interruption when stopping at a debug breakpoint. |
bool HostMigration |
If, in host mode, we should allow host migration if the current host leaves.
int InputDataWordCount |
Input Data Word Count
InputTransferModes InputTransferMode |
The way which input is transferred
byte MaxObjectDestroysSentPerPacket = 32 |
The amount of object destroys Fusion sends per packet. Increasing this value means Fusion prioritizes sending more destroys before regular state changes. Setting this value to 255, can help with problems when unloading scenes with many runtime spawned objects (such as Spawned/Despawned being called on those objects multiple times).
DataConsistency ObjectDataConsistency |
How the server chooses to send NetworkObject updates to balance consistency and bandwidth consumption.
int PlayerCount = 10 |
The default number of players allowed to join a game instance. Can also be changed in code when starting Fusion.
NetworkProjectConfig.ReplicationFeatures ReplicationFeatures = NetworkProjectConfig.ReplicationFeatures.Scheduling |
Scheduling is the default.
SimulationTimeMode SimulationUpdateTimeMode = SimulationTimeMode.UnscaledDeltaTime |
The time mode that the Runner uses to update the simulation.
-
TickRate.Selection TickRateSelection = TickRate.Default |
The default tick rate to use. Can also be changed in code when starting Fusion.
Topologies Topology |
The topology used
|
get |
Signal if AOI is enabled
|
get |
|
get |
Signal if scheduling is enabled
|
get |
Signal if scheduling is running without AOI