Marshal Class
This page contains documentation for advanced Fuse features, so we have
taken the liberty to tick the "Show advanced things" checkbox above for
you in advance to be able to provide you with some additional information.
Location
- Namespace
- Fuse
- Package
- Fuse.Marshal 2.9.1
Interface of Marshal
CanConvertClass(Type) : bool uno
IConverter uno
Is(object, Type) : bool uno
Parse(string) : object uno
ToBool(object) : bool uno
ToByte(object) : short uno
ToDouble(object) : double uno
ToFloat(object) : float uno
ToFloat2(object) : float2 uno
ToFloat3(object) : float3 uno
ToFloat4(object) : float4 uno
ToInt(object) : int uno
ToSByte(object) : sbyte uno
ToShort(object) : short uno
ToSize(object) : Size uno
ToSize2(object) : Size2 uno
ToType<T>(object) : T uno
Be aware this function may throw a NullReferenceException if the type cannot be converted to the desired one. It is advised to use TryToType or TryConvertTo instead.
ToUInt(object) : uint uno
ToUShort(object) : ushort uno
TryAdd(object, object, object) : bool uno
TryConvertTo(Type, object, object, object) : bool uno
TryDivide(object, object, object) : bool uno
TryEqualTo(object, object, bool) : bool uno
TryGreaterOrEqual(object, object, bool) : bool uno
TryGreaterThan(object, object, bool) : bool uno
TryLessOrEqual(object, object, bool) : bool uno
TryLessThan(object, object, bool) : bool uno
TryMax(object, object, object) : bool uno
TryMin(object, object, object) : bool uno
TryMultiply(object, object, object) : bool uno
TrySubtract(object, object, object) : bool uno
TryToColorFloat4(object, float4) : bool uno
Converts a float3, float4 or equivalently convertible type to a float4. This uses color conversion rules: it sets the alpha component to 1 if not specified.
TryToDouble(object, double) : bool uno
TryToDouble(string, double) : bool uno
TryToFloat(object, float) : bool uno
TryToSize(object, Size) : bool uno
TryToSize2(object, Size2, int) : bool uno
Convert to a Size type up to Size2 returning the count of the elements provided in the input.
TryToSize2(object, Size2) : bool uno
TryToType<T>(object, T) : bool uno
Tries to convert to a target value. Unlike TryConvertTo
this will return false
if the input value is null
.
TryToZeroFloat4(object, float4, int) : bool uno
Converts a value to a float4. Unlike ToFloat4
this will zero extend the missing components.