Class TargetDirectory
- Namespace
- Homa.Sdk.Foundation
- Assembly
- Homa.Sdk.Foundation.dll
Abstracts common directories and provides os-rooted paths based on the OS and the platform.
public class TargetDirectory
- Inheritance
-
TargetDirectory
- Derived
- Inherited Members
Constructors
TargetDirectory(string)
Create directory representation by providing os-rooted path in the constructor.
protected TargetDirectory(string path)
Parameters
pathstringos-rooted path
Fields
Cache
Path to a cache directory used by Homa SDK.
- On device: UnityEngine.Application.temporaryCachePath/Homa
- In editor: ProjectPath/Homa/Cache
public static readonly TargetDirectory Cache
Field Value
Persistent
Path to permanent content storage directory used by Homa SDK.
- On device: UnityEngine.Application.persistentDataPath/Homa
- In editor: ProjectPath/Homa/Data
public static readonly TargetDirectory Persistent
Field Value
StreamingAssets
Path to the StreamingAssets directory of the Unity project.
- On device & in editor: UnityEngine.Application.streamingAssetsPath
public static readonly TargetDirectory StreamingAssets
Field Value
Methods
ToPath()
Converts TargetDirectory to a system path.
public string ToPath()
Returns
ToPath(params string[])
Builds a full path using the TargetDirectory as base
public string ToPath(params string[] paths)
Parameters
pathsstring[]