跳至内容

schola.core.unreal_connections.UnrealEditorConnection

类定义

class schola.core.unreal_connections.UnrealEditorConnection(url, port)

Base classes: UnrealConnection

连接到正在运行的 Unreal Editor 实例。

Raises: AssertionError – 如果未提供端口

参数

url

类型: str
连接到的 URL。

port

Type: int
要连接的 URL 上的端口。

属性

address

返回连接的地址。

is_active

返回连接是否处于活动状态。

方法

__init__

__init__(url, port)

参数

  • url (str)
  • port (int)

close

close()

关闭 Unreal 连接。

connect_stubs

connect_stubs(*stubs)

将 gRPC 存根连接到 Unreal Engine 通道。

get_open_port

get_open_port(url)

在给定的 URL 上获取一个开放端口。

start

start()

打开到 Unreal Engine 的连接。

© . This site is unofficial and not affiliated with AMD.