Class Platform
A collection of properties with values that vary depending on the current platform
Inheritance
System.Object
Platform
Namespace: ScriptableFramework
Assembly: cs.temp.dll.dll
Syntax
public static class Platform
Properties
FilePath
Returns either Application.persistentDataPath
or Application.streamingAssetsPath
depending on which is appropriate for the platform generally speaking.
Declaration
public static string FilePath { get; }
Property Value
Type | Description |
---|---|
System.String |
IsDesktop
Is the current build consided a desktop platform?
Declaration
public static bool IsDesktop { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsMobile
Is the current build considered a mobile platform?
Declaration
public static bool IsMobile { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
IsWeb
Is the current build considered a web platform?
Declaration
public static bool IsWeb { get; }
Property Value
Type | Description |
---|---|
System.Boolean |
PersistentPath
Returns Application.persistentDataPath
with a "/" at the end for convenience.
Declaration
public static string PersistentPath { get; }
Property Value
Type | Description |
---|---|
System.String |
StreamingPath
Returns Application.streamingAssetsPath
with a "/" at the end for convenience.
Declaration
public static string StreamingPath { get; }
Property Value
Type | Description |
---|---|
System.String |
Methods
Path(PathType)
Returns either Platform.PersistentPath
or Platform.StreamingPath
based on the type provided.
Declaration
public static string Path(PathType type)
Parameters
Type | Name | Description |
---|---|---|
PathType | type | The desired path type. Designed for the value to be assigned in the inspector for convenience. |
Returns
Type | Description |
---|---|
System.String | The desired path. |