CsoundUnity 4.0.0-alpha.3
Loading...
Searching...
No Matches
Csound.Unity.EnvironmentSettings Class Reference

This class describes a setting that is meant to be used to set Csound's Global Environment Variables. More...

Public Member Functions

string GetPath (bool runtime=false)
 Returns the resolved file-system path for this environment setting, combining the baseFolder origin with the suffix.
string GetTypeString ()
 Returns the string representation of the CsoundUnity.EnvType for this setting.
string GetPlatformString ()
 Returns the string representation of the SupportedPlatform for this setting.
string GetPathDescriptor (bool runtime)
 Returns a human-readable descriptor combining platform, type and resolved path.

Public Attributes

SupportedPlatform platform
 The target platform this environment setting applies to.
CsoundUnity.EnvType type
 The Csound environment variable to set (e.g. CsoundUnity.EnvType.SFDIR).
EnvironmentPathOrigin baseFolder
 The base folder origin used to build the full path.
string suffix
 Path suffix appended to the base folder to form the final path.
bool foldout
 Whether the setting is drawn expanded in the inspector.
List< string > AssetsToLoadList
 List of asset paths that should be loaded into the virtual file system for this environment setting.

Detailed Description

This class describes a setting that is meant to be used to set Csound's Global Environment Variables.

Member Function Documentation

◆ GetPath()

string Csound.Unity.EnvironmentSettings.GetPath ( bool runtime = false)
inline

Returns the resolved file-system path for this environment setting, combining the baseFolder origin with the suffix.

Parameters
runtimeWhen true, returns the expected runtime path for the target platform (useful for Editor preview). When false (default), returns the current Editor path via Application.persistentDataPath / streamingAssetsPath.
Returns
The fully combined path string.

◆ GetPathDescriptor()

string Csound.Unity.EnvironmentSettings.GetPathDescriptor ( bool runtime)
inline

Returns a human-readable descriptor combining platform, type and resolved path.

Parameters
runtimeWhen true, returns the expected runtime path; otherwise returns the Editor path.
Returns
One line naming the platform, the variable and the path it resolves to.

◆ GetPlatformString()

string Csound.Unity.EnvironmentSettings.GetPlatformString ( )
inline

Returns the string representation of the SupportedPlatform for this setting.

Returns
The SupportedPlatform as its name.

◆ GetTypeString()

string Csound.Unity.EnvironmentSettings.GetTypeString ( )
inline

Returns the string representation of the CsoundUnity.EnvType for this setting.

Returns
The CsoundUnity.EnvType as its name, such as SFDIR.

Member Data Documentation

◆ AssetsToLoadList

List<string> Csound.Unity.EnvironmentSettings.AssetsToLoadList

List of asset paths that should be loaded into the virtual file system for this environment setting.

◆ baseFolder

EnvironmentPathOrigin Csound.Unity.EnvironmentSettings.baseFolder

The base folder origin used to build the full path.

◆ foldout

bool Csound.Unity.EnvironmentSettings.foldout

Whether the setting is drawn expanded in the inspector.

◆ platform

SupportedPlatform Csound.Unity.EnvironmentSettings.platform

The target platform this environment setting applies to.

◆ suffix

string Csound.Unity.EnvironmentSettings.suffix

Path suffix appended to the base folder to form the final path.

◆ type

CsoundUnity.EnvType Csound.Unity.EnvironmentSettings.type

The Csound environment variable to set (e.g. CsoundUnity.EnvType.SFDIR).


The documentation for this class was generated from the following file: