book_4_sparkGenerated
code_blocksInput

Description

The FilterModifier enumeration is part of the Editor.NodeEditor namespace and is used to define modifiers that can be applied to filters within the node editor. This enum provides a way to specify how filters should be modified or interpreted.

The None field is a member of the FilterModifier enum and represents the default state where no modification is applied to the filter. It is useful when you want to apply a filter without any additional logic or alteration.

Usage

Use the FilterModifier.None field when you want to apply a filter in its original form without any modifications. This is typically used in scenarios where the filter logic should remain unchanged.

For example, when setting up a node in the editor that requires a filter, you can specify FilterModifier.None to indicate that the filter should be used as-is.

Example

// Example of using FilterModifier.None in a node editor setup

public class MyNodeEditor
{
    public void SetupNode()
    {
        // Assume we have a method to apply a filter to a node
        ApplyFilter(FilterModifier.None);
    }

    private void ApplyFilter(FilterModifier modifier)
    {
        // Logic to apply the filter based on the modifier
        if (modifier == FilterModifier.None)
        {
            // Apply the filter without any modifications
        }
    }
}