Methods for loading package configuration.
More...
|
static ConfigVector | Current [get, set] |
| Current Configuration, load if null.
|
|
static bool | HasConfig [get] |
|
static UnityAction< ConfigVector > | OnLoadConfig = null [get, set] |
|
static UnityAction | OnClearCache = null [get, set] |
|
|
static void | CleanCurrentConfig () |
| if the config has some missing elements, we remove it
|
|
static FieldInfo | FindRelationField (string[] propertyPaths, Type serializedObjectType) |
| Get the parent field (just before the vector) in a propertyPath.
|
|
static List< T > | FindAssetsByType< T > () |
| Helper for find asset in project.
|
|
|
static ConfigVector | _current = null |
|
static Dictionary< string, SkinVector > | _cacheSkinProperties = new Dictionary<string, SkinVector>() |
| Cache for not load config at each frame.
|
|
Methods for loading package configuration.
◆ CheckValidityConfigObject()
static bool VectorFocus.ConfigSkin.ConfigLoader.CheckValidityConfigObject |
( |
ConfigObject |
configObject | ) |
|
|
static |
Check if configObject is valid & usable.
- Parameters
-
- Returns
◆ FindAssetsByType< T >()
static List< T > VectorFocus.ConfigSkin.ConfigLoader.FindAssetsByType< T > |
( |
| ) |
|
|
staticprivate |
Helper for find asset in project.
- Template Parameters
-
- Returns
◆ FindRelationField()
static FieldInfo VectorFocus.ConfigSkin.ConfigLoader.FindRelationField |
( |
string[] |
propertyPaths, |
|
|
Type |
serializedObjectType |
|
) |
| |
|
staticprivate |
Get the parent field (just before the vector) in a propertyPath.
- Parameters
-
propertyPaths | PropertyPath change in array |
serializedObjectType | Serialized object main type |
- Returns
◆ GetConfigObjectByType()
static ConfigObject VectorFocus.ConfigSkin.ConfigLoader.GetConfigObjectByType |
( |
Type |
type | ) |
|
|
static |
Get ConfigObject with type equals to GetRealClass.
- Parameters
-
- Returns
◆ GetSkinByProperty()
static SkinVector VectorFocus.ConfigSkin.ConfigLoader.GetSkinByProperty |
( |
SerializedProperty |
serializedProperty | ) |
|
|
static |
Get the skin associate with serializedProperty, if not found return null.
- Parameters
-
- Returns
◆ GetSkinFromProperty()
Get the skin associate with serializedProperty, if not found return the default one.
- Parameters
-
serializedProperty | |
attribute | |
- Returns
◆ LoadConfig()
static void VectorFocus.ConfigSkin.ConfigLoader.LoadConfig |
( |
bool |
removeException = false | ) |
|
|
static |
Load package Configuration.
- Parameters
-
The documentation for this class was generated from the following file: