Class GameObjectConverter
Specific converter for GameObjects that can handle converting to/from components or rely on the base UnityObjectConverter otherwise
Inheritance
TypeConverter
GameObjectConverter
Assembly: Xareus.Unity.dll
Syntax
[TypeConverterFor(typeof(GameObject))]
public class GameObjectConverter : UnityObjectConverter
Methods
CanConvertFrom(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertFrom(ITypeDescriptorContext context, Type sourceType)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| Type |
sourceType |
|
Returns
Overrides
CanConvertTo(ITypeDescriptorContext, Type)
Declaration
public override bool CanConvertTo(ITypeDescriptorContext context, Type destinationType)
Parameters
| Type |
Name |
Description |
| ITypeDescriptorContext |
context |
|
| Type |
destinationType |
|
Returns
Overrides
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
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