Unreal Class Setup Guide
This guide was written as a quick reference step by step guide for the first setup of genvid classes. For class descriptions or more in depth information on each step please check the documentation at https://www.genvidtech.com/for-developers/sdk-latest/
Blueprint Class Creation and Setup
Create blueprints for the following classes (GenvidSessionManager, GenvidSession, GenvidVideo, GenvidAudio, GenvidStreams, GenvidEvents, and GenvidCommands)
Create a blueprint PlayerController and GameMode
Open your blueprint GenvidSessionManager. Set your blueprint GenvidSession in the property “Session Class”
Open your GenvidSession blueprint. Set your blueprint GenvidAudio and GenvidVideo in the properties “Audio Stream Class” and “Video Stream Class”.
Open your PlayerController. Add the blueprint GenvidEvents, GenvidStreams, and GenvidCommands as components
Open your GameMode. Set your PlayerController as the default player controller class property
Open project settings - set your new game mode as the default
GenvidSessionManager Instance Creation
The GenvidSessionManager needs to persist at all times. One way to make sure this is the case is to have the GameInstance manage it.
Create a blueprint GameInstace. Set the blueprint as the default game instance class in project settings.
Create a variable in the GameInstance that is an instance of your GenvidSessionManager blueprint
In the event graph on Init add the following:
Create a Session Manager using your blueprint session manager class
Set the instance created into the property declared above
Call the “initialize” function on the session manager instance
In the event graph on Shutdown add the following:
Call the “terminate” function on the session manager instance