|
Kanda Foundation 0.2.0
|
A utility to query information about the current runtime platform. More...
Inheritance diagram for IPlatformInfoService:Public Member Functions | |
| PlatformContextFlags | GetContext () |
| Gets the platform context. These are flags, as the context may represent multiple roles at once, for example Editor and Player. | |
| PlatformDevice | GetDevice () |
| Gets the current platform device. | |
| string | GetVersion () |
| Gets the application version string. | |
Properties | |
| bool | IsPlayer [get] |
| Returns true if the platform context represents a player. | |
| bool | IsServer [get] |
| Returns true if the platform context represents a server. | |
| bool | IsEditor [get] |
| Returns true if the platform context represents the Unity Editor. | |
| bool | IsXrDevice [get] |
| Returns true if the platform device represents an XR-compatible device. | |
A utility to query information about the current runtime platform.
| PlatformContextFlags GetContext | ( | ) |
Gets the platform context. These are flags, as the context may represent multiple roles at once, for example Editor and Player.
Implemented in PlatformInfoService.
| PlatformDevice GetDevice | ( | ) |
Gets the current platform device.
Implemented in PlatformInfoService.
| string GetVersion | ( | ) |
Gets the application version string.
Implemented in PlatformInfoService.
|
get |
Returns true if the platform context represents the Unity Editor.
Implemented in PlatformInfoService.
|
get |
Returns true if the platform context represents a player.
Implemented in PlatformInfoService.
|
get |
Returns true if the platform context represents a server.
Implemented in PlatformInfoService.
|
get |
Returns true if the platform device represents an XR-compatible device.
Implemented in PlatformInfoService.