Scripting: Client vs Simulator
When scripting Simulators, we need mechanisms to tell them apart.
Am I a Simulator ?
using Coherence;
using UnityEngine;
public class SimualatorClass : MonoBehaviour
{
public void Awake()
{
if (SimulatorUtility.IsSimulator)
{
// I'm a simulator!
}
}
}Connect and ConnectionType
Connect and ConnectionTypeCOHERENCE_SIMULATOR

Command-line argument
Server-side simulation

Auto-reconnect

Last updated
Was this helpful?

