A React renderer for Unreal Motion Graphics With Unreal.js
npm install react-umgThis repository is a fork of react-umg whose original author is Wolfgang Steiner
A React renderer for Unreal Motion Graphics (https://docs.unrealengine.com/latest/INT/Engine/UMG/)
This project is dependent on Unreal.js
##### We recommend using React with Babel to let you use JSX in your Javascript code. JSX is an extension to the Javascript language that works nicely with React.
npm i --save react-umg
- div(UVerticalBox)
- span(UHorizontalBox)
- text(UTextBlock)
- img(UImage)
- input(EditableText)
#### Create Component
``js
class MyComponent extends React.Component {
constructor(props, context) {
super(props, context);
this.state = {text:"MyComponent"};
}
OnTextChanged(value) {
this.setState({text: value});
}
render() {
return (
#### Draw With React-UMG
`js
let widget = ReactUMG.wrap( );
widget.AddToViewport();
return () => {
widget.RemoveFromViewport();
}
``- Details