The February Sale is here! Save 50% on select products now through February 22.

Custom Stencil State Machine

Aasura-san - Code Plugins - Feb 11, 2023
Not Yet Rated

A plugin for a convenient Custom Stencil management, based on Gameplay Tags instead of raw values.

  • Supported Platforms
  • Supported Engine Versions
    5.0 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.


This plugin allows you to create a multi state machine for custom stencil post processes based on Gameplay Tags instead of integer values. Only 2 material nodes are needed to set up. The plugin provides various functions for adding, removing, and checking the Primitive Component custom stencil. It also allows you to load the default post process settings to every level. And since it's based on Gameplay Tags, it's very easy to find all usages of a specific stencil type in assets.

NOTE: This plugin uses a bit flags technique, so you can create up to 8 custom stencil states with it, because the maximum value of the custom stencil is 255, so we can use up to 8 bits.

Technical Details



  •  Custom stencil multi state machine based on Gameplay Tags
  •  Works for up to 8 custom stencil states
  •  Allows you to easily render multiple custom stencil post processes
  • Convenient functions for adding, removing or checking a specific stencil type
  • Provides the ability to set the default post process settings for every level in your project
  • It's very easy to find a specific stencil type through the Reference Viewer

Code Modules:

  •  CustomStencilStateMachine (Runtime)

Number of Blueprints: 5 material functions

Number of C++ Classes: 4

Network Replicated: N/A

Supported Development Platforms: Windows

Supported Target Build Platforms: Win64

Example Project: Example assets are in the plugin's Content folder