文档

Unity Engine

Unity Engine

PopulateContextMenu(T, PropertyDrawer, ref GenericMenu)

Allows to populate context menu with custom methods for your IRenderPipelineGraphicsSettings.
阅读时间1 分钟最后更新于 2 小时前

Definition

PopulateContextMenu(T, PropertyDrawer, GenericMenu)

警告
Deprecated. IRenderPipelineGraphicsSettingsContextMenu\<T\> is deprecated and will be removed in a future release. Use IRenderPipelineGraphicsSettingsContextMenu2\<T\> instead. #from(6000.0)
void PopulateContextMenu(T setting, PropertyDrawer drawer, ref GenericMenu menu)

Parameters

setting

T
The IRenderPipelineGraphicsSettings being inspected.

The PropertyDrawer being used to draw settings.

The UITK GenericDropdownMenu being constructed.