A collection of runtime utilities to read settings assets.
More...
|
| static T | LoadOrInstantiate< T > (string assetPath) |
| | Loads a settings asset from Resources or creates a new instance.
|
| |
A collection of runtime utilities to read settings assets.
◆ LoadOrInstantiate< T >()
| static T LoadOrInstantiate< T > |
( |
string | assetPath | ) |
|
|
inlinestatic |
Loads a settings asset from Resources or creates a new instance.
- Parameters
-
| assetPath | The Resources path to load asset from. Example: KandaSdk/AppSettings/MySettings |
- Template Parameters
-
| T | The type of settings asset to load. Must be a ScriptableObject which implements IKandaSettings. |
- Returns
- A loaded or created instance of the settings asset.
- Type Constraints
-
| T | : | ScriptableObject | |
| T | : | IKandaSettings | |
The documentation for this class was generated from the following file:
- Runtime/Settings/App/RuntimeSettingsAssetUtils.cs