ReactorUMG is a plugin for Unreal Engine that enables developers to build UMG game UI and editor UI using React. It benefits game developers and UI designers by streamlining UI development workflows. The plugin connects React's component-based architecture with Unreal Engine's UMG system, allowing for more efficient and maintainable UI code.
git clone https://github.com/Caleb196x/ReactorUMG.gitReactorUMG is a plugin for Unreal Engine that enables developers to build UMG game UI and editor UI using React. It benefits game developers and UI designers by streamlining UI development workflows. The plugin connects React's component-based architecture with Unreal Engine's UMG system, allowing for more efficient and maintainable UI code.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/Caleb196x/ReactorUMGCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
As a game developer at [COMPANY] working in the [INDUSTRY] space, I need to create a dynamic UI for my game using ReactorUMG. I have a React component that displays player stats. Convert this component into a UMG widget that can be used in Unreal Engine. The component should include health, mana, and stamina bars with real-time updates. Provide the necessary ReactorUMG code and explain how to integrate it with Unreal Engine's UMG system.
```jsx
// React Component for Player Stats
import React, { useState, useEffect } from 'react';
const PlayerStats = ({ initialHealth, initialMana, initialStamina }) => {
const [health, setHealth] = useState(initialHealth);
const [mana, setMana] = useState(initialMana);
const [stamina, setStamina] = useState(initialStamina);
useEffect(() => {
// Simulate health regeneration
const healthInterval = setInterval(() => {
setHealth(prevHealth => Math.min(prevHealth + 1, 100));
}, 2000);
// Simulate mana regeneration
const manaInterval = setInterval(() => {
setMana(prevMana => Math.min(prevMana + 1, 100));
}, 3000);
// Simulate stamina regeneration
const staminaInterval = setInterval(() => {
setStamina(prevStamina => Math.min(prevStamina + 1, 100));
}, 1000);
return () => {
clearInterval(healthInterval);
clearInterval(manaInterval);
clearInterval(staminaInterval);
};
}, []);
return (
<div className='player-stats'>
<h2>Player Stats</h2>
<div className='stat-bar'>
<span>Health: {health}</span>
<progress value={health} max='100' />
</div>
<div className='stat-bar'>
<span>Mana: {mana}</span>
<progress value={mana} max='100' />
</div>
<div className='stat-bar'>
<span>Stamina: {stamina}</span>
<progress value={stamina} max='100' />
</div>
</div>
);
};
export default PlayerStats;
```
### Conversion to UMG Widget
To convert the above React component into a UMG widget using ReactorUMG, follow these steps:
1. **Install ReactorUMG Plugin**: Ensure the ReactorUMG plugin is installed and enabled in your Unreal Engine project.
2. **Create a New ReactorUMG Component**: In Unreal Engine, create a new ReactorUMG component and link it to your React component.
3. **Map React Props to UMG Properties**: Map the `initialHealth`, `initialMana`, and `initialStamina` props to UMG properties that can be set in the Unreal Editor.
4. **Handle State Updates**: Use ReactorUMG's state management to handle the dynamic updates of health, mana, and stamina.
5. **Integrate with UMG Widgets**: Create UMG widgets for the health, mana, and stamina bars and bind them to the corresponding state variables.
### Example UMG Widget Code
```cpp
// UMG Widget Blueprint for Player Stats
UMG_PlayerStats
{
Variables:
Health (Float)
Mana (Float)
Stamina (Float)
Functions:
UpdateHealthBar()
UpdateManaBar()
UpdateStaminaBar()
Widgets:
HealthBar (Progress Bar)
ManaBar (Progress Bar)
StaminaBar (Progress Bar)
}
```
By following these steps, you can seamlessly integrate your React component into Unreal Engine's UMG system, leveraging the power of React's component-based architecture for dynamic and maintainable UI development.AI that performs conversations that connect
Write like a pro.
IronCalc is a spreadsheet engine and ecosystem
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power