schola.core.unreal_connections.UnrealConnection

class schola.core.unreal_connections.UnrealConnection(url, port)[source]

Bases: object

Abstract Base Class for a gRPC based connection to Unreal Engine.

Parameters:
  • url (str) – The url to connect to

  • port (int) – The port on that URL to connect to

url

The URL to connect to

Type:

str

port

The port on the URL to connect to

Type:

int

channel

The channel connecting to Unreal Engine on the chosen address

Type:

grpc.Channel

Methods

__init__(url, port)

close()

Close the Unreal Connection.

connect_stubs(*stubs)

Connects the gRPC stubs to the Unreal Engine channel

get_open_port(url)

Get an open port on the given URL

start()

Open the Connection to Unreal Engine.

Attributes

address

Returns the address of the connection

is_active

Returns whether the connection is active or not

__init__(url, port)[source]
Parameters:
property address: str

Returns the address of the connection

Returns:

The address of the connection

Return type:

str

close()[source]

Close the Unreal Connection. Method must be safe to call multiple times.

Return type:

None

connect_stubs(*stubs)[source]

Connects the gRPC stubs to the Unreal Engine channel

Parameters:

*stubs (List[“grpc.Stub”]) – The gRPC stubs to connect to the Unreal Engine channel

Return type:

List[grpc.Stub]

get_open_port(url)[source]

Get an open port on the given URL

Parameters:

url (str) – The URL to get an open port on

Returns:
  • socket.socket – A socket object bound to the open port

  • int – The open port

Return type:

Tuple[socket, int]

property is_active: bool

Returns whether the connection is active or not

Returns:

Whether the connection is active or not

Return type:

bool

start()[source]

Open the Connection to Unreal Engine.

Return type:

None

Related pages

  • Visit the Schola product page for download links and more information.

Looking for more documentation on GPUOpen?

AMD GPUOpen software blogs

Our handy software release blogs will help you make good use of our tools, SDKs, and effects, as well as sharing the latest features with new releases.

GPUOpen Manuals

Don’t miss our manual documentation! And if slide decks are what you’re after, you’ll find 100+ of our finest presentations here.

AMD GPUOpen Performance Guides

The home of great performance and optimization advice for AMD RDNA™ 2 GPUs, AMD Ryzen™ CPUs, and so much more.

Getting started: AMD GPUOpen software

New or fairly new to AMD’s tools, libraries, and effects? This is the best place to get started on GPUOpen!

AMD GPUOpen Getting Started Development and Performance

Looking for tips on getting started with developing and/or optimizing your game, whether on AMD hardware or generally? We’ve got you covered!

AMD GPUOpen Technical blogs

Browse our technical blogs, and find valuable advice on developing with AMD hardware, ray tracing, Vulkan®, DirectX®, Unreal Engine, and lots more.

Find out more about our software!

AMD GPUOpen Effects - AMD FidelityFX technologies

Create wonder. No black boxes. Meet the AMD FidelityFX SDK!

AMD GPUOpen Samples

Browse all our useful samples. Perfect for when you’re needing to get started, want to integrate one of our libraries, and much more.

AMD GPUOpen developer SDKs

Discover what our SDK technologies can offer you. Query hardware or software, manage memory, create rendering applications or machine learning, and much more!

AMD GPUOpen Developer Tools

Analyze, Optimize, Profile, Benchmark. We provide you with the developer tools you need to make sure your game is the best it can be!