Class NetworkCRC | Multiplayer HLAPI | 1.0.8
docs.unity3d.com
    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
    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023