---
title: shouldCenterFilter
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skeffectnode/shouldcenterfilter
---

# shouldCenterFilter

A Boolean value that determines whether the effect node automatically sets the filter’s image center.

## Declaration

```swift
var shouldCenterFilter: Bool { get set }
```

## Discussion

Discussion If the value of this property is true and the filter has an inputCenter parameter, the effect node automatically sets the filter’s input center to the effect node’s origin. The default value is true.

## See Also

### Applying Core Image Filters with an Effect Node

- [Applying Special Effects to a Node’s Children](spritekit/applying-special-effects-to-a-node-s-children.md)
- [filter](spritekit/skeffectnode/filter.md)
- [shouldEnableEffects](spritekit/skeffectnode/shouldenableeffects.md)
