Configuration

UESynth provides various configuration options to customize the plugin behavior and optimize performance for your specific use case.

Plugin Configuration

Editor Settings

Access UESynth settings in the Unreal Editor:

  1. Go to Edit → Project Settings

  2. Navigate to Plugins → UESynth

  3. Adjust the following settings:

Network Settings

Setting
Default
Description

gRPC Port

50051

Port for the gRPC server

Enable SSL

false

Use secure connections (requires certificates)

Max Connections

10

Maximum concurrent client connections

Timeout (ms)

5000

Request timeout in milliseconds

Performance Settings

Setting
Default
Description

Enable Streaming

true

Allow bidirectional streaming for async clients

Stream Buffer Size

1024

Buffer size for streaming responses

Async Mode

true

Process requests asynchronously

Thread Pool Size

4

Number of worker threads for processing

Capture Settings

Setting
Default
Description

Default Image Format

PNG

Default format for captured images

Image Quality

95

JPEG quality (0-100) when using JPEG format

Enable Depth Capture

true

Allow depth map generation

Enable Segmentation

true

Allow segmentation mask generation

Max Resolution

4096x4096

Maximum allowed capture resolution

Runtime Configuration

You can also modify settings at runtime through the Python client:

Python Client Configuration

Connection Settings

Configure the client connection parameters:

Async Client Configuration

For the async client, additional options are available:

Environment Variables

UESynth respects the following environment variables:

Variable
Default
Description

UESYNTH_HOST

localhost

Default host for connections

UESYNTH_PORT

50051

Default port for connections

UESYNTH_TIMEOUT

5.0

Default timeout in seconds

UESYNTH_LOG_LEVEL

INFO

Logging level (DEBUG, INFO, WARNING, ERROR)

UESYNTH_ENABLE_SSL

false

Enable SSL by default

Example usage:

Advanced Configuration

Custom gRPC Options

For advanced users, you can pass custom gRPC channel options:

Logging Configuration

Configure logging for debugging and monitoring:

SSL/TLS Configuration

For secure connections in production environments:

Server Side (Unreal Engine)

  1. Generate or obtain SSL certificates

  2. Place certificates in your project's Config folder

  3. Enable SSL in plugin settings

  4. Specify certificate paths:

    • server.crt - Server certificate

    • server.key - Private key

    • ca.crt - Certificate Authority (optional)

Client Side (Python)

Configuration Best Practices

Development Environment

Production Environment

High-Performance Scenarios

Troubleshooting Configuration

Validate Settings

Check your current configuration:

Common Configuration Issues

  1. Port conflicts: Use netstat to check port availability

  2. Firewall blocking: Ensure the port is open in firewall settings

  3. SSL certificate errors: Verify certificate paths and validity

  4. Timeout too short: Increase timeout for complex scenes

  5. Memory issues: Reduce buffer sizes and concurrent requests

For detailed troubleshooting, see the Performance Guide.

Last updated