Kanda Foundation 0.2.0
Loading...
Searching...
No Matches
RuntimeSettingsAssetUtils Class Reference

A collection of runtime utilities to read settings assets. More...

Static Public Member Functions

static T LoadOrInstantiate< T > (string assetPath)
 Loads a settings asset from Resources or creates a new instance.
 

Detailed Description

A collection of runtime utilities to read settings assets.

Member Function Documentation

◆ LoadOrInstantiate< T >()

static T LoadOrInstantiate< T > ( string assetPath)
inlinestatic

Loads a settings asset from Resources or creates a new instance.

Parameters
assetPathThe Resources path to load asset from. Example: KandaSdk/AppSettings/MySettings
Template Parameters
TThe 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: