← FAB archive

Game Kit: Laser System (C++)

A C++ based laser system with Niagara.

Screenshots

Fully customizable Laser System

  • Implemented in both C++ and Blueprint
  • Beam and impact effects are created in Niagara and can be replaced
  • Laser beams can reflect from mirror materials and act as triggers

How-To

Create a new trace channel for the laser

Laser trace channel

Configure the trace channel in the Collision panel

Laser collision panel

For the C++ package

Save the settings in DefaultEngine.ini

[/Script/Engine.CollisionProfile]
+DefaultChannelResponses=(Channel=ECC_GameTraceChannel1,DefaultResponse=ECR_Block,bTraceType=True,bStaticObject=False,Name="LaserTrace")

Replace the value on line 16 of LaserEmitter.h

static ECollisionChannel ECC_LaserTrace = ECollisionChannel::ECC_GameTraceChannel1;

And that's it…

Add the BP_LaserEmitter actor to the scene and set its parameters as you like.

Laser emitter setup
Laser system result
Unreal Engine Unreal Engine C++ Portal System Set up a customizable Unreal Engine C++ portal system with clip planes, collision channels, data assets, and character integration. Unreal Engine Unreal Engine C++ Compass System UI Kit Configure a customizable Unreal Engine C++ compass system and UI kit with simple and complex widgets, data assets, and Blueprint attributes.
View the complete FAB archive Browse tools on FAB