@uepm/example-plugin
v1.0.5
Published
Example Unreal Engine plugin distributed via NPM
Downloads
563
Maintainers
Readme
@uepm/example-plugin
Example Unreal Engine plugin distributed via NPM, demonstrating the UEPM (Unreal Engine Package Manager) workflow.
Installation
npm install @uepm/example-pluginPrerequisites
Your Unreal Engine project must be initialized for UEPM:
npx @uepm/initWhat's Included
This plugin demonstrates:
- Basic plugin structure - Standard Unreal Engine plugin layout
- NPM distribution - Plugin distributed via NPM registry
- Engine compatibility - Semver-based engine version requirements
- C++ module - Simple module with logging functionality
- Plugin descriptor - Proper .uplugin file configuration
Plugin Structure
@uepm/example-plugin/
├── ExamplePlugin.uplugin # Plugin descriptor
├── package.json # NPM package configuration
├── Source/ # C++ source code
│ └── ExamplePlugin/
│ ├── Private/
│ │ ├── ExamplePlugin.cpp
│ │ └── ExamplePluginModule.cpp
│ ├── Public/
│ │ ├── ExamplePlugin.h
│ │ └── ExamplePluginModule.h
│ └── ExamplePlugin.Build.cs
├── Resources/ # Plugin resources
│ └── Icon128.png
└── README.mdEngine Compatibility
- Unreal Engine: 5.0.0 or later (< 6.0.0)
- Platforms: All platforms supported by Unreal Engine
Usage in Unreal Engine
- Install the plugin via NPM
- Open your project in Unreal Engine
- Go to Edit > Plugins
- Find "Example Plugin" in the list
- Enable the plugin
- Restart the editor when prompted
The plugin will log a message when loaded:
LogExamplePlugin: Example Plugin has been loaded!Development
This plugin serves as a template for creating your own NPM-distributed Unreal Engine plugins. Key features:
- Proper package.json with
unreal.engineVersionfield - Standard plugin structure following Unreal Engine conventions
- Build configuration with proper module dependencies
- NPM publishing ready with correct file inclusions
Creating Your Own Plugin
Use this plugin as a starting point:
- Copy the plugin structure
- Rename files and classes
- Update package.json with your plugin details
- Implement your plugin functionality
- Publish to NPM
License
MIT
