MixedReality-WebRTC MixedReality-WebRTC
Search Results for

    Show / Hide Table of Contents

    Class WebcamSourceEditor

    Inspector editor for WebcamSource.

    Inheritance
    Object
    WebcamSourceEditor
    Namespace: Microsoft.MixedReality.WebRTC.Unity.Editor
    Assembly: cs.temp.dll.dll
    Syntax
    public class WebcamSourceEditor : UnityEditor.Editor

    Methods

    EnumToInt<TValue>(TValue)

    Helper to convert an enum to its integer value.

    Declaration
    public static int EnumToInt<TValue>(TValue value)
        where TValue : Enum
    Parameters
    Type Name Description
    TValue value

    The enum value.

    Returns
    Type Description
    Int32

    The integer value associated with value.

    Type Parameters
    Name Description
    TValue

    The enum type.

    IntToEnum<TValue>(Int32)

    Helper to convert an integer to its enum value.

    Declaration
    public static TValue IntToEnum<TValue>(int value)
        where TValue : Enum
    Parameters
    Type Name Description
    Int32 value

    The integer value.

    Returns
    Type Description
    TValue

    The enum value whose integer value is value.

    Type Parameters
    Name Description
    TValue

    The enum type.

    OnInspectorGUI()

    Override implementation of Editor.OnInspectorGUI to draw the inspector GUI for the currently selected WebcamSource.

    Declaration
    public override void OnInspectorGUI()
    In This Article
    Back to top Generated by DocFX