C++ Java Unity
Unity Reference
SurfaceUtilities Class Reference

This class publicly exposes native methods that are related to surface management. These methods are used by the Unity Extension and usually should not be used in application code. More...

Static Public Member Functions

static ScreenOrientation GetSurfaceOrientation ()
 Gets the current orientation More...
 
static bool HasSurfaceBeenRecreated ()
 Checks if the GLSurface has been recreated More...
 
static void OnSurfaceChanged (int screenWidth, int screenHeight)
 Signals native that the screen size has changed (device rotation) More...
 
static void OnSurfaceCreated ()
 Signals native that the rendering surface has been created by Unity More...
 
static void OnSurfaceDeinit ()
 Signals native that the rendering surface should be deinitialized More...
 
static void SetSurfaceOrientation (ScreenOrientation screenOrientation)
 Sets a new orientation More...
 

Detailed Description

This class publicly exposes native methods that are related to surface management. These methods are used by the Unity Extension and usually should not be used in application code.

Member Function Documentation

static ScreenOrientation GetSurfaceOrientation ( )
static

Gets the current orientation

static bool HasSurfaceBeenRecreated ( )
static

Checks if the GLSurface has been recreated

static void OnSurfaceChanged ( int  screenWidth,
int  screenHeight 
)
static

Signals native that the screen size has changed (device rotation)

static void OnSurfaceCreated ( )
static

Signals native that the rendering surface has been created by Unity

static void OnSurfaceDeinit ( )
static

Signals native that the rendering surface should be deinitialized

static void SetSurfaceOrientation ( ScreenOrientation  screenOrientation)
static

Sets a new orientation