StencilLayers

For each layer in the array, the world will be rendered and then a stencil mask will clip all pixels not affected by the objects on that layer.

Windows
MacOS
Linux

Syntax

[UPROPERTY](Programming/UnrealArchitecture/Reference/Properties)(EditAnywhere, BlueprintReadWrite, Category="Stencil Clip Layers")
TArray < FActorLayer > StencilLayers

Remarks

For each layer in the array, the world will be rendered and then a stencil mask will clip all pixels not affected by the objects on that layer. This is NOT a true layer system, as translucent objects will show opaque objects from another layer behind them. Does not write out additional post-process materials per-layer as they will match the base layer. Only works with materials that can write to custom depth.

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback