docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class InteropHelpers.SteamParamStringArray

    Marshals a string list into a native SteamParamStringArray_t for one call. Because it is a SafeHandle parameter, the marshaller keeps it alive for the whole native call. The generated wrappers construct it inline, so as a plain IntPtr it could be collected while Steam reads it.

    Inheritance
    object
    CriticalFinalizerObject
    SafeHandle
    SafeHandleZeroOrMinusOneIsInvalid
    InteropHelpers.SteamParamStringArray
    Implements
    IDisposable
    Inherited Members
    SafeHandleZeroOrMinusOneIsInvalid.IsInvalid
    SafeHandle.handle
    SafeHandle.Close()
    SafeHandle.DangerousAddRef(ref bool)
    SafeHandle.DangerousGetHandle()
    SafeHandle.DangerousRelease()
    SafeHandle.Dispose()
    SafeHandle.Dispose(bool)
    SafeHandle.SetHandle(IntPtr)
    SafeHandle.SetHandleAsInvalid()
    SafeHandle.IsClosed
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.Steamworks.Interop
    Assembly: Unity.Steamworks.Interop.dll
    Syntax
    public class InteropHelpers.SteamParamStringArray : SafeHandleZeroOrMinusOneIsInvalid, IDisposable

    Constructors

    SteamParamStringArray(IList<string>)

    Allocates the UTF-8 strings and the SteamParamStringArray_t that points at them.

    Declaration
    public SteamParamStringArray(IList<string> strings)
    Parameters
    Type Name Description
    IList<string> strings

    The strings to marshal; null leaves the handle invalid.

    Methods

    ReleaseHandle()

    Frees the unmanaged memory this handle owns.

    Declaration
    protected override bool ReleaseHandle()
    Returns
    Type Description
    bool

    true once every allocation has been released.

    Overrides
    SafeHandle.ReleaseHandle()

    Operators

    implicit operator IntPtr(SteamParamStringArray)

    The SteamParamStringArray_t* the flat API expects, or IntPtr.Zero for a null list.

    Declaration
    public static implicit operator IntPtr(InteropHelpers.SteamParamStringArray that)
    Parameters
    Type Name Description
    InteropHelpers.SteamParamStringArray that

    The array to take the pointer from; may be null.

    Returns
    Type Description
    IntPtr

    The SteamParamStringArray_t* to pass to the flat API, or IntPtr.Zero.

    Implements

    IDisposable
    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)