docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct SteamNetworkingConfigValue_t

    One configuration option passed to a listen-socket or connection creation call (e.g. CreateListenSocketIP(ref SteamNetworkingIPAddr, int, SteamNetworkingConfigValue_t[])). Options passed at creation apply before the object does anything, which setting them right after creation cannot guarantee.

    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.GetType()
    object.ReferenceEquals(object, object)
    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    [Serializable]
    public struct SteamNetworkingConfigValue_t

    Fields

    m_eDataType

    Which member of m_val holds the value.

    Declaration
    public ESteamNetworkingConfigDataType m_eDataType
    Field Value
    Type Description
    ESteamNetworkingConfigDataType

    m_eValue

    Which option is being set.

    Declaration
    public ESteamNetworkingConfigValue m_eValue
    Field Value
    Type Description
    ESteamNetworkingConfigValue

    m_val

    The option's value.

    Declaration
    public SteamNetworkingConfigValue_t.OptionValue m_val
    Field Value
    Type Description
    SteamNetworkingConfigValue_t.OptionValue

    Methods

    SetFloat(ESteamNetworkingConfigValue, float)

    Sets a Float option and its value.

    Declaration
    public void SetFloat(ESteamNetworkingConfigValue eVal, float data)
    Parameters
    Type Name Description
    ESteamNetworkingConfigValue eVal

    Which option to set.

    float data

    The value to store for it.

    SetInt32(ESteamNetworkingConfigValue, int)

    Sets an Int32 option and its value.

    Declaration
    public void SetInt32(ESteamNetworkingConfigValue eVal, int data)
    Parameters
    Type Name Description
    ESteamNetworkingConfigValue eVal

    Which option to set.

    int data

    The value to store for it.

    SetInt64(ESteamNetworkingConfigValue, long)

    Sets an Int64 option and its value.

    Declaration
    public void SetInt64(ESteamNetworkingConfigValue eVal, long data)
    Parameters
    Type Name Description
    ESteamNetworkingConfigValue eVal

    Which option to set.

    long data

    The value to store for it.

    SetPtr(ESteamNetworkingConfigValue, IntPtr)

    Sets a Ptr option and its value.

    Declaration
    public void SetPtr(ESteamNetworkingConfigValue eVal, IntPtr data)
    Parameters
    Type Name Description
    ESteamNetworkingConfigValue eVal

    Which option to set.

    IntPtr data

    The value to store for it.

    SetString(ESteamNetworkingConfigValue, IntPtr)

    Sets a String option. Like the C++ helper, it stores only the pointer, not a copy, so keep the buffer allocated (or pinned) for as long as this value is in use.

    Declaration
    public void SetString(ESteamNetworkingConfigValue eVal, IntPtr data)
    Parameters
    Type Name Description
    ESteamNetworkingConfigValue eVal

    Which option to set.

    IntPtr data

    A caller-owned, null-terminated UTF-8 string.

    In This Article
    Back to top
    Copyright © 2026 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)