Documentation Home
v1.22 v1.23
v1.22 v1.23

Tools

SkyReal VR lets extensions add custom Tools to its Tool library. A Tool is an Actor that can represent a wrench, scanner, flashlight, or any other object that users can place and manipulate in a simulation.

A custom Tool is made of two assets:

  • A Blueprint derived from SkrTool, which defines the Tool's appearance and behavior.

  • A SkrToolDescription Data Asset, which registers the Tool and defines how it appears in the SkyReal Tool library.

Create a Custom Tool

1. Create the Tool Blueprint

  1. In your extension's Content folder, create a new Blueprint Class.

  2. Select SkrTool as the parent class.

  3. Give the Blueprint a clear name, for example BP_MyTool.

  4. Save it outside the RegistrableAssets folder.

2. Prepare the Static Mesh

The Tool should use a single Static Mesh. If the source model contains several parts, use Unreal Engine's Merge Actors tool to create one Static Mesh.

Before using the mesh, check its scale, orientation, pivot, and collision. These settings directly affect how the Tool is positioned and manipulated.

3. Configure the Tool Blueprint

  1. Open the SkrTool Blueprint.

  2. Select its ModelComponent.

  3. Assign your Static Mesh.

  4. Add any Blueprint logic, components, sockets, or interactions required by the Tool.

  5. Compile and save the Blueprint.

4. Create the Tool Description

  1. Open the extension's Content/RegistrableAssets folder.

  2. Create a new Data Asset.

  3. Select SkrToolDescription as its class.

  4. Configure the properties described below.

  5. Ensure that Should Auto Register Asset is enabled.

  6. Click Refresh Tool Library Guid to generate a unique identifier, then save the Data Asset.

Important: The Tool Library Guid must be valid and unique. If you duplicate a Tool Description, generate a new GUID for the copy. A missing or duplicated GUID can prevent the Tool from appearing correctly in the library.

Tool Description Properties

Property

Description

Tool Class

The Blueprint class derived from SkrTool that SkyReal will instantiate.

Skr Tool Name

The name displayed to users in the Tool selection interface.

Skr Category

The category in which the Tool is grouped. Tools are sorted alphabetically by category. Default: Default.

Priority

The Tool's order inside its category. Lower values are displayed first.

Tool Thumbnail

The image displayed for the Tool in interfaces that support thumbnails.

Is Default Freeze

Controls whether a newly created Tool starts frozen. Enabled by default.

Has Sockets

Indicates that the Tool provides sockets for attachment workflows.

Is Interactable

Indicates that the Tool supports user interaction.

Tool Library Guid

The unique identifier used by the Tool library. Generate it with Refresh Tool Library Guid.

How the Tool Is Instantiated

At startup, SkyReal automatically discovers registered SkrToolDescription Data Assets. Valid descriptions are added to the Tool library and sorted by category and priority.

When a user selects and places a Tool, SkyReal:

  1. Reads the selected SkrToolDescription.

  2. Spawns its Tool Class at the selected location and rotation.

  3. Assigns the Tool Library Guid to the spawned Actor.

  4. Initializes it as a SkyReal session object so that it can participate in the simulation and save system.

You do not need to add the Tool Blueprint to a SkrController.

In the Tool Blueprint, Get Static Mesh Component returns the ModelComponent, for example to change its material at runtime.

Deprecated Registration Methods

The following legacy methods should no longer be used:

  • SkrController > Tools To Add

  • The SDK Add Tool Blueprint function

Both have been replaced by the auto-registerable SkrToolDescription Data Asset workflow. They still work for compatibility but log a deprecation warning: replace them with a SkrToolDescription in Content/RegistrableAssets.

Common Issues

  • The Tool is missing from the library: check that the description is inside Content/RegistrableAssets, Should Auto Register Asset is enabled, Tool Class is assigned, and the Tool Library Guid is valid.

  • One Tool replaces another: their Tool Library Guids may be identical. Generate a new GUID on the duplicated description.

  • The Tool has no visible geometry: verify that a Static Mesh is assigned to ModelComponent.

  • The Tool is difficult to place or manipulate: check the mesh's pivot, scale, orientation, and collision.

  • The Tool cannot be restored from a saved simulation: ensure that its description remains available and that the Tool class has not been moved outside the extension or its declared dependencies.