IAppSettings

An open project. A project is a folder holding an Assets folder and nothing else is required: everything it configures lives in settings assets under Assets — one per aspect, such as PlayerSettings or GraphicsSettings — read through Get{T}.

Properties

ProjectAbsoluteDir

(string) { get; set }: The project folder, or an empty string when no project is open.

AssetsAbsoluteDir

(string) : The project's Assets folder, or an empty string when no project is open.

Title

(string?) { get; set }: The project's name: its folder name, which is also what its scripts' assembly is called. What players see is ProductName.

Loaded

(ProjectSettingsSet) : The settings assets read for this project, filled by ProjectSettingsLoader.

TitleToPathFriendly

(string?) : Convert the Tile to use only path-friendly characters

Public Methods

Get

 T Get()

The settings of one kind, or its declared defaults when the project has none.

Returns: T

  • The settings.

Load

 IAppSettings Load(IAppSettings appSettings)

Essentially to clone or absorb settings from other object.

Parameters:

  • appSettings (IAppSettings)

Returns: IAppSettings