VectorFocus
Set your position data with a click
Loading...
Searching...
No Matches
Static Public Member Functions | Properties | Static Private Member Functions | Static Private Attributes | List of all members
VectorFocus.ConfigSkin.ConfigLoader Class Reference

Methods for loading package configuration. More...

Static Public Member Functions

static void LoadConfig (bool removeException=false)
 Load package Configuration.
 
static bool CheckValidityConfigObject (ConfigObject configObject)
 Check if configObject is valid & usable.
 
static AbstractSkinVector GetSkinFromProperty (SerializedProperty serializedProperty, VectorFocusAttribute attribute)
 Get the skin associate with serializedProperty, if not found return the default one.
 
static SkinVector GetSkinByProperty (SerializedProperty serializedProperty)
 Get the skin associate with serializedProperty, if not found return null.
 
static ConfigObject GetConfigObjectByType (Type type)
 Get ConfigObject with type equals to GetRealClass.
 
static void ClearCache ()
 

Properties

static ConfigVector Current [get, set]
 Current Configuration, load if null.
 
static bool HasConfig [get]
 
static UnityAction< ConfigVectorOnLoadConfig = null [get, set]
 
static UnityAction OnClearCache = null [get, set]
 

Static Private Member Functions

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 Private Attributes

static ConfigVector _current = null
 
static Dictionary< string, SkinVector_cacheSkinProperties = new Dictionary<string, SkinVector>()
 Cache for not load config at each frame.
 

Detailed Description

Methods for loading package configuration.

Member Function Documentation

◆ CheckValidityConfigObject()

static bool VectorFocus.ConfigSkin.ConfigLoader.CheckValidityConfigObject ( ConfigObject  configObject)
static

Check if configObject is valid & usable.

Parameters
configObject
Returns

◆ FindAssetsByType< T >()

static List< T > VectorFocus.ConfigSkin.ConfigLoader.FindAssetsByType< T > ( )
staticprivate

Helper for find asset in project.

Template Parameters
T
Returns
Type Constraints
T :UnityEngine.Object 

◆ FindRelationField()

static FieldInfo VectorFocus.ConfigSkin.ConfigLoader.FindRelationField ( string[]  propertyPaths,
Type  serializedObjectType 
)
staticprivate

Get the parent field (just before the vector) in a propertyPath.

Parameters
propertyPathsPropertyPath change in array
serializedObjectTypeSerialized object main type
Returns

◆ GetConfigObjectByType()

static ConfigObject VectorFocus.ConfigSkin.ConfigLoader.GetConfigObjectByType ( Type  type)
static

Get ConfigObject with type equals to GetRealClass.

Parameters
type
Returns

◆ GetSkinByProperty()

static SkinVector VectorFocus.ConfigSkin.ConfigLoader.GetSkinByProperty ( SerializedProperty  serializedProperty)
static

Get the skin associate with serializedProperty, if not found return null.

Parameters
serializedProperty
Returns

◆ GetSkinFromProperty()

static AbstractSkinVector VectorFocus.ConfigSkin.ConfigLoader.GetSkinFromProperty ( SerializedProperty  serializedProperty,
VectorFocusAttribute  attribute 
)
static

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
removeException

The documentation for this class was generated from the following file: