docs.unity.cn
    Show / Hide Table of Contents

    Class CreateTimecodeSourceMenuItemAttribute

    An attribute placed on ITimecodeSource implementations to specify where the source appears in the create timecode source menu.

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

    This only has any effect for timecode sources that inherit from UnityEngine.Component.

    Constructors

    CreateTimecodeSourceMenuItemAttribute(String, Int32)

    Creates a new CreateTimecodeSourceMenuItemAttribute instance.

    Declaration
    public CreateTimecodeSourceMenuItemAttribute(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 © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Monday, July 24, 2023