Class UnityObjectConverter
Inheritance
TypeConverter
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
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
sourceType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Type)
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.CanConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Type)
ConvertFrom(ITypeDescriptorContext, CultureInfo, object)
Declaration
public override object ConvertFrom(ITypeDescriptorContext context, CultureInfo culture, object value)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertFrom(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object)
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
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
CultureInfo |
culture |
|
object |
value |
|
Type |
destinationType |
|
Returns
Overrides
System.ComponentModel.TypeConverter.ConvertTo(System.ComponentModel.ITypeDescriptorContext, System.Globalization.CultureInfo, object, System.Type)
ConvertToParamByNames(ITypeDescriptorContext, object, Parameter)
Declaration
protected virtual void ConvertToParamByNames(ITypeDescriptorContext context, object value, Parameter parentParameter)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
object |
value |
|
Parameter |
parentParameter |
|
ConvertToParamByRef(ITypeDescriptorContext, object)
Declaration
protected static Parameter ConvertToParamByRef(ITypeDescriptorContext context, object value)
Parameters
Type |
Name |
Description |
ITypeDescriptorContext |
context |
|
object |
value |
|
Returns