docs.unity.cn

Core RP Library 15.0.6

    Show / Hide Table of Contents

    Class VolumeComponentMenu

    This attribute allows you to add commands to the Add Override popup menu on Volumes. To filter VolumeComponentMenu based on current Render Pipeline, add SupportedOnRenderPipeline attribute to the class alongside with this attribute.

    Inheritance
    Object
    Attribute
    VolumeComponentMenu
    VolumeComponentMenuForRenderPipeline
    Namespace: UnityEngine.Rendering
    Syntax
    [AttributeUsage(AttributeTargets.Class, AllowMultiple = false)]
    public class VolumeComponentMenu : Attribute, _Attribute

    Constructors

    VolumeComponentMenu(String)

    Creates a new VolumeComponentMenu instance.

    Declaration
    public VolumeComponentMenu(string menu)
    Parameters
    Type Name Description
    String menu

    The name of the entry in the override list. You can use slashes to create sub-menus.

    Fields

    menu

    The name of the entry in the override list. You can use slashes to create sub-menus.

    Declaration
    public readonly string menu
    Field Value
    Type Description
    String

    Extension Methods

    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, Boolean)
    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    In This Article
    • Constructors
      • VolumeComponentMenu(String)
    • Fields
      • menu
    • Extension Methods
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 07 July 2023