美文网首页UE5
UE5像素流入门

UE5像素流入门

作者: WebGiser | 来源:发表于2023-02-01 20:26 被阅读0次

参考:https://docs.unrealengine.com/5.0/en-US/getting-started-with-pixel-streaming-in-unreal-engine/
https://www.jianshu.com/p/2ebf3f5bcceb

首先创建一个UE5工程,并打包

  • Edit > Plugins,开启Pixel Streaming 插件
  • Edit > Project Settings,Under the Engine > Input category, find and enable the Always Show Touch Interface setting
  • Edit > Editor Preferences,Under the Level Editor > Play category, find the Additional Launch Parameters setting, and set its value to -AudioMixer -PixelStreamingIP=localhost -PixelStreamingPort=8888
image.png image.png

启动打包后的应用程序时需要添加参数:-AudioMixer -PixelStreamingIP=localhost -PixelStreamingPort=8888

启动信令服务

  • 修改config.json文件:config.json里面的StreamerPort参数要与启动UE程序时设置的PixelStreamingPort保持一致。HttpPort即是信令服务与前端WebSocket页面通信的端口。
  • 在打包后的Samples\PixelStreaming\WebServers\SignallingWebServer目录下,执行命令
node cirrus.js

可以修改config.json文件后,启动多个信令实例。

  • 网页上访问:http://localhost:80,即可访问UE自带的默认的像素流插件页面

相关文章

网友评论

    本文标题:UE5像素流入门

    本文链接:https://www.haomeiwen.com/subject/jdoihdtx.html