docs.unity3d.com
Search Results for

    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
    Assembly: Unity.RenderPipelines.Core.Editor.dll
    Syntax
    [Obsolete("The menu items are handled automatically for components with the AdditionalComponentData attribute. #from(2022.2)", 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.GetField(object, string)
    ReflectionUtils.GetFields(object)
    ReflectionUtils.Invoke(object, string, params object[])
    ReflectionUtils.SetField(object, string, object)
    AnalyticsUtils.ToNestedColumnWithDefault<T>(T, T, bool)
    AnalyticsUtils.ToNestedColumn<T>(T, T)
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)