文档

Unity Engine

Unity Engine

PopulateContextMenu(T, SerializedProperty, ref GenericMenu)

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

Definition

PopulateContextMenu(T, SerializedProperty, GenericMenu)

void PopulateContextMenu(T setting, SerializedProperty property, ref GenericMenu menu)

Parameters

setting

T
The IRenderPipelineGraphicsSettings that the contextual menu changed. Its type matches the generic type used in the interface.


The GenericMenu being constructed, to be amended with some custom commands.