featheredEdge
TypeScriptget featheredEdge(): ClippingComponent_FeatheredEdgeSwift declarationvar featheredEdge: ClippingComponent.FeatheredEdgeThe feathering configuration for the clipping boundaries.
struct · iOS 27.0+ · SDK 27.1
struct ClippingComponentA component that clips entities and their children to a customizable bounding box volume with feathered edges. The `ClippingComponent` provides a powerful and performant way to clip content in RealityKit. It's particularly useful for: - Creating soft-edge effects with feathered boundaries instead of hard cuts - Creating polished spatial experiences with hierarchical clipping control Add a `ClippingComponent` to an entity by passing it to an entity's ``Entity/ComponentSet/set()`` method. ```swift let windowEntity = Entity() let bounds = BoundingBox(min: SIMD3<Float>(-10, -10, -10), max: SIMD3<Float>(10, 10, 10)) var clipping = ClippingComponent(bounds: bounds) clipping.featheredEdge.falloff = .linear clipping.featheredEdge.positiveEdgeInset = [2, 2, 0.0] // 2-unit feather zone on +X & +Y edges clipping.featheredEdge.negativeEdgeInset = [0.0, 0.0, 0.0] // no feathering on negative edges clipping.shouldClipSelf = true clipping.shouldClipChildren = true windowEntity.components.set(clipping) ```
get featheredEdge(): ClippingComponent_FeatheredEdgeSwift declarationvar featheredEdge: ClippingComponent.FeatheredEdgeThe feathering configuration for the clipping boundaries.
set featheredEdge(value: ClippingComponent_FeatheredEdge)Swift declarationvar featheredEdge: ClippingComponent.FeatheredEdgeThe feathering configuration for the clipping boundaries.
get shouldClipSelf(): booleanSwift declarationvar shouldClipSelf: BoolControls whether the entity itself is clipped by this component's bounds. When `true`, the entity's own geometry is clipped by the bounding volume. When `false`, only child entities are affected (if `shouldClipChildren` is `true`).
set shouldClipSelf(value: boolean)Swift declarationvar shouldClipSelf: BoolControls whether the entity itself is clipped by this component's bounds. When `true`, the entity's own geometry is clipped by the bounding volume. When `false`, only child entities are affected (if `shouldClipChildren` is `true`).
get shouldClipChildren(): booleanSwift declarationvar shouldClipChildren: BoolControls whether child entities are clipped by this component's bounds. When `true`, all descendant entities in the hierarchy will be clipped to this entity's clipping bounds. When `false`, only the entity with this component is affected (if `shouldClipSelf` is `true`).
set shouldClipChildren(value: boolean)Swift declarationvar shouldClipChildren: BoolControls whether child entities are clipped by this component's bounds. When `true`, all descendant entities in the hierarchy will be clipped to this entity's clipping bounds. When `false`, only the entity with this component is affected (if `shouldClipSelf` is `true`).
get bounds(): BoundingBoxSwift declarationvar bounds: BoundingBoxThe bounding box that defines the clipping region in the entity's local coordinate space. Content outside this bounding box will be clipped (hard edge or faded out based on feathering). The bounds are defined relative to the entity's origin and are affected by the entity's transform.
set bounds(value: BoundingBox)Swift declarationvar bounds: BoundingBoxThe bounding box that defines the clipping region in the entity's local coordinate space. Content outside this bounding box will be clipped (hard edge or faded out based on feathering). The bounds are defined relative to the entity's origin and are affected by the entity's transform.
static init(bounds: BoundingBox): ClippingComponentSwift declarationinit(bounds: BoundingBox)No declarations were skipped in this snapshot.