The May sale is here! Save 70% on select products now through May 23.

SplineSweeper Component - Fast Spline Mesh Automation

Zenith Digital - Code Plugins - Aug 6, 2019

The Sweep Component quickly generates a set of spline meshes to sweep any spline

  • Supported Platforms
  • Supported Engine Versions
    4.22 - 4.27, 5.0 - 5.4
  • 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.

The sweep component allows you to quickly generate spline meshes to sweep the given spline. Its not meant to be a complex system for special game logic, rather this is for when you just want to mesh a spline quickly and without effort. Just one node is required to call the sweep functionality, and it can run in construction script or at runtime. The mesh cleans itself on each run, so it's fine to call on tick as well, so long as your spline isn't too complex. This pack comes with a set of profiles to sweep, but you can add your own easily, they are just 1cm2 meshes with a number of subdivisions to increase smoothness during deformation.


How to use:

  1. Add a sweep component to your Blueprint.
  2. Call Sweep Spline function from the component, and feed in your spline. Customise your spline as you want via the component panel.


If you need complex logic, you'll need to build your splines the usual way, if you just want to get a spline mesh going asap, this plugin is for you.


Caveats:

  • This only supports overriding of one material, if you want more you'll have to loop through the components and update them via Blueprint (There's an array of SplineMeshComponents you can loop through).
  • Changes are only supported in the Blueprint. This component does not support Per-Instance changes, so you'll need different Blueprints for different attributes.


Why is this a plugin you might wonder? This plugin does something you're not allowed to do in Blueprints, spawn components from within a component. This is blocked from standard Blueprints for safety, but its fine to do when set up correctly, as this plugin is.

Technical Details

Features:

  •  Easily sweep splines with a profile with just 1 function call
  •  5 preset profiles provided


Code Modules:

  •  SplineSweeper Module, Runtime


Number of Blueprints: 0

Number of C++ Classes: 1

Network Replicated: No

Supported Development Platforms: Win64, Win32. Should work on Mac/Linux fine, but untested

Supported Target Build Platforms: Tested against Win64, should be fine on all platforms

Example Video: Overview Video

Support Link: Discord Support

Example Project: Drive Link