Class UnityObjectConverter
Inheritance
UnityObjectConverter
Assembly: Xareus.Unity.dll
Syntax
[TypeConverterFor(typeof(Object))]
public class UnityObjectConverter : TypeConverter
Fields
COMPONENT_TYPE_PARAM_NAME
Declaration
protected const string COMPONENT_TYPE_PARAM_NAME = "ComponentType"
Field Value
GAMEOBJECT_PATH_PARAM_NAME
Declaration
protected const string GAMEOBJECT_PATH_PARAM_NAME = "GameObjectPath"
Field Value
RESOURCES_PATH
Declaration
protected const string RESOURCES_PATH = "Resources/"
Field Value
RESOURCE_NAME_PARAM_NAME
Declaration
protected const string RESOURCE_NAME_PARAM_NAME = "ResourceName"
Field Value
UFID_PARAM_NAME
Declaration
protected const string UFID_PARAM_NAME = "UFID"
Field Value
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
Returns
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Returns
Overrides
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Returns
Overrides
ConvertFromParameterByName(UnityObjectDescriptorContext, Parameter)
Declaration
protected static (bool, Object) ConvertFromParameterByName(UnityObjectDescriptorContext descriptorContext, Parameter param)
Parameters
Returns
ConvertFromParameterByRef(UnityObjectDescriptorContext, string)
Declaration
protected static (bool, Object) ConvertFromParameterByRef(UnityObjectDescriptorContext descriptorContext, string stringRef)
Parameters
Returns
ConvertTo(ITypeDescriptorContext, CultureInfo, object, Type)
Declaration
public override object ConvertTo(ITypeDescriptorContext context, CultureInfo culture, object value, Type destinationType)
Parameters
Returns
Overrides
ConvertToParamByNames(ITypeDescriptorContext, object, Parameter)
Declaration
protected virtual void ConvertToParamByNames(ITypeDescriptorContext context, object value, Parameter parentParameter)
Parameters
ConvertToParamByRef(ITypeDescriptorContext, object)
Declaration
protected static Parameter ConvertToParamByRef(ITypeDescriptorContext context, object value)
Parameters
Returns