Create a Planet - Quick Start

This section shows how to create a simple planet-like sphere using the plugin. For more specific examples, visit the corresponding categories.

This guide assumes no prior knowledge of the Unreal Engine Editor and uses Blueprints.

Goal

After this tutorial, you will have the following planet in your scene.

Simple Planet

Tutorial

1. Create the Planet actor

To create and spawn a planet, we need an Actor Blueprint. Let's start by creating an actor that will be used to spawn the planet.

In the Unreal Engine Editor, right click in the content browser and select Blueprint Class.

Create a Blueprint class

In the window, select Actor to create the Actor Blueprint.

Create a Actor Blueprint

Finish by giving a name to the newly created actor.

Name an Actor Blueprint

2. Add a Procedural Mesh Component

Now that our actor is created, we need a procedural mesh component to render the planet. After opening the actor created in the previous section, add a procedural mesh component by clicking on Add in the component panel.

Add a component button

Search for procedural and add a Procedural Mesh component.

Add a component button

3. Generate the Planet Data

Go to the actor's Event Graph by clicking on the Event Graph tab.

Event graph tab

Remove any nodes already in the graph and add the following code to the graph.

Tip: You can click on the Copy Code button at the bottom of the image.

This code generates a hexagonal sphere data, converts it to mesh data and pushes this data to the Procedural Mesh Component previously created.

4. Placing the Actor

Go back in the content browser and drag your actor into the scene. Launch the preview (ALT + P). Move in the scene to see the actor placed. You should see the planet below:

Simple Planet