Class Main
Main entry point to the PSN system and initialization
Namespace: Unity.PSN.PS5
Syntax
public class Main
Methods
Initialize(UInt32, UInt32)
Initialise the Unity PSN system
Declaration
public static InitResult Initialize(uint nativeWriteBufferK = 2048U, uint nativeReadBufferK = 2048U)
Parameters
| Type | Name | Description |
|---|---|---|
| UInt32 | nativeWriteBufferK | Size of write buffers measured in Kbytes |
| UInt32 | nativeReadBufferK | Size of read buffers measured in Kbytes |
Returns
| Type | Description |
|---|---|
| InitResult | Returns the results of initialization include the SDK version. InitResult |
ShutDown()
Shutdown the Unity PSN system
Declaration
public static void ShutDown()
Update()
Update function. Must be called each frame from the main Unity thread
Declaration
public static void Update()