docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    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.

    Inheritance
    object
    NetworkCRC
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.Networking
    Assembly: com.unity.multiplayer-hlapi.Runtime.dll
    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
    bool

    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, int>

    Methods

    RegisterBehaviour(string, int)

    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.

    int 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
    In This Article
    Back to top
    Copyright © 2025 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)