Marshal.TryToColorFloat4 Method (object, float4)
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.
Location
- Namespace
- Fuse
- Package
- Fuse.Marshal 2.9.1
Parameters
Returns
true if converted successfully, false if no suitable conversion exists. null
cannot be converted and will return false;