Class NetworkCRC
This class holds information about which networked scripts use which QoS channels for updates.
This channel information is used to ensure that clients and servers are using compatible HLAPI script configurations.
Namespace: UnityEngine.Networking
Syntax
[Obsolete("The high level API classes are deprecated and will be removed in the future.")]
public class NetworkCRC
Properties
scriptCRCCheck
Enables a CRC check between server and client that ensures the NetworkBehaviour scripts match.
This may not be appropriate in some cases, such a when the client and server are different Unity projects.
Declaration
public static bool scriptCRCCheck { get; set; }
Property Value
Type | Description |
---|---|
Boolean |
scripts
A dictionary of script QoS channels.
This is used to compare script network configurations between clients and servers.
Declaration
public Dictionary<string, int> scripts { get; }
Property Value
Type | Description |
---|---|
Dictionary<String, Int32> |
Methods
RegisterBehaviour(String, Int32)
This is used to setup script network settings CRC data.
Declaration
public static void RegisterBehaviour(string name, int channel)
Parameters
Type | Name | Description |
---|---|---|
String | name | Script name. |
Int32 | channel | QoS Channel. |
ReinitializeScriptCRCs(Assembly)
This can be used to reinitialize the set of script CRCs.
This is very rarely required - only when NetworkBehaviour scripts are dynamically loaded.
Declaration
public static void ReinitializeScriptCRCs(Assembly callingAssembly)
Parameters
Type | Name | Description |
---|---|---|
Assembly | callingAssembly |