barsdeveloper / ueblueprint

Unreal Engine's Blueprint visualization web library
https://barsdeveloper.github.io/ueblueprint/
MIT License
46 stars 13 forks source link
unreal-engine unreal-engine-5

UEBlueprint

A stand alone editor implementation of the UE's Blueprint visual language.

https://www.npmjs.com/package/ueblueprint

Features:

Demo:

Try it!

img1

Getting started:

Run locally

1) Open a terminal in the main folder. 2) Run the following commands.

npm install
npm run build
npx http-server

3) Open the link you see in the last message printed.

Use in a web page

You can check index.html for a working example, the main steps are the following:

  1. Make the dist directory available in your website by copying it or installing through npm npm i ueblueprint.
  2. Include dist/css/ueb-style.css stylesheet in your page.
  3. Define eventual CSS variables.
    <style>
    ueb-blueprint {
        --ueb-height: 500px;
    }
    </style>
  4. Import the class Blueprint in JavaScript (this library uses modules).
    <script type="module">
    import { Blueprint } from "./dist/ueblueprint.min.js"
    </script>
  5. Define your blueprint by writing the code inside a template, inside a ueb-blueprint element.
    <ueb-blueprint>
    <template>
        ...                   
    </template>
    </ueb-blueprint>