A collection of editor utilities to read and write settings assets.
More...
A collection of editor utilities to read and write settings assets.
◆ CreateSettingsAssetInResources< T >()
| static T CreateSettingsAssetInResources< T > |
( |
string | resourcesRelativePath | ) |
|
|
inlinestatic |
Creates a settings asset in Resources.
- Parameters
-
| resourcesRelativePath | The path of the asset relative to the resources folder. |
- Template Parameters
-
| T | The type of asset to be created. |
- Returns
- An instance of the asset object which was created.
- Type Constraints
-
| T | : | ScriptableObject | |
| T | : | IKandaSettings | |
◆ GetOrCreateSettingsAssetInResources< T >()
| static T GetOrCreateSettingsAssetInResources< T > |
( |
string | resourcesRelativePath | ) |
|
|
inlinestatic |
Get a settings asset from Resources. If asset does not exist, it will be created and populated with default values.
- Parameters
-
| resourcesRelativePath | The path of the asset relative to the resources folder. |
- Template Parameters
-
| T | The type of asset to be created. |
- Returns
- An instance of the asset object which was either gotten or created.
If referring to an asset stored at Assets/Resources/MyFolder/MyAsset.asset:
GetOrCreateSettingsAssetInResources<MyAsset>("MyFolder/MyAsset");
- Type Constraints
-
| T | : | ScriptableObject | |
| T | : | IKandaSettings | |
◆ TryCreateDirectoryFromAssetPath()
| static void TryCreateDirectoryFromAssetPath |
( |
string | assetPath | ) |
|
|
inlinestatic |
Creates a directory for a given asset path if it does not exist.
- Parameters
-
| assetPath | The asset path to create directory for. |
The documentation for this class was generated from the following file:
- Editor/Settings/EditorSettingsAssetUtils.cs