docs.unity.cn
    Show / Hide Table of Contents

    Class CreateDeviceMenuItemAttribute

    An attribute placed on LiveCaptureDevice implementations to specify where the device appears in the create device menu.

    Inheritance
    Object
    Attribute
    MenuPathAttribute
    CreateDeviceMenuItemAttribute
    Inherited Members
    MenuPathAttribute.ItemName
    MenuPathAttribute.Priority
    Namespace: Unity.LiveCapture
    Syntax
    [AttributeUsage(AttributeTargets.Class, Inherited = false)]
    public class CreateDeviceMenuItemAttribute : MenuPathAttribute, _Attribute

    Constructors

    CreateDeviceMenuItemAttribute(String, Int32)

    Creates a new CreateDeviceMenuItemAttribute instance.

    Declaration
    public CreateDeviceMenuItemAttribute(string itemName, int priority = 0)
    Parameters
    Type Name Description
    String itemName

    The menu item represented like a path name. For example, the menu item could be "Sub Menu/Action".

    Int32 priority

    The order by which the menu items are displayed. Items in the same sub menu have a separator placed between them if their priority differs by more than 10.

    Back to top Copyright © 2022 Unity Technologies
    Generated by DocFX
    on Friday, August 26, 2022
    Terms of use