docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Delegate DelegateOnIceGatheringStateChange

    Delegate to be called when the state of the ICE candidate gathering process changes.

    Namespace: Unity.WebRTC
    Assembly: Unity.WebRTC.dll
    Syntax
    public delegate void DelegateOnIceGatheringStateChange(RTCIceGatheringState state)
    Parameters
    Type Name Description
    RTCIceGatheringState state
    Remarks

    This delegate is called when the state of the ICE candidate gathering process changes.

    Examples
    peerConnection.OnIceGatheringStateChange = state =>
    {
        if (state == RTCIceGatheringState.Complete)
        {
            GameObject newCandidate = Instantiate(candidateElement, candidateParent);
        }
    }

    See Also

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