docs.unity3d.com
    Show / Hide Table of Contents

    Interface IRemoveAdditionalDataContextualMenu<T>

    Interface that should be used with [ScriptableRenderPipelineExtension(type))] attribute to dispatch ContextualMenu calls on the different SRPs

    Namespace: UnityEditor.Rendering
    Syntax
    [Obsolete("The menu items are handled automatically for components with the AdditionalComponentData attribute", false)]
    public interface IRemoveAdditionalDataContextualMenu<T>
        where T : Component
    Type Parameters
    Name Description
    T

    This must be a component that require AdditionalData in your SRP

    Methods

    RemoveComponent(T, IEnumerable<Component>)

    Remove the given component

    Declaration
    void RemoveComponent(T component, IEnumerable<Component> dependencies)
    Parameters
    Type Name Description
    T component

    The component to remove

    IEnumerable<Component> dependencies

    Dependencies.

    Extension Methods

    ReflectionUtils.Invoke(Object, String, Object[])
    ReflectionUtils.SetField(Object, String, Object)
    ReflectionUtils.GetField(Object, String)
    ReflectionUtils.GetFields(Object)
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023