---
title: "init(name:semantic:float4:)"
framework: modelio
role: symbol
role_heading: Initializer
path: "modelio/mdlmaterialproperty/init(name:semantic:float4:)"
---

# init(name:semantic:float4:)

Initializes a material property with a 4-component vector value.

## Declaration

```swift
convenience init(name: String, semantic: MDLMaterialSemantic, float4 value: vector_float4)
```

## Parameters

- `name`: A descriptive name for the material property. For details, see the doc://com.apple.modelio/documentation/ModelIO/MDLMaterialProperty/name property.
- `semantic`: The semantic meaning for the material property’s value. For details, see the doc://com.apple.modelio/documentation/ModelIO/MDLMaterialProperty/semantic property.
- `value`: The 4-component floating-point vector value for the material property.

## Return Value

Return Value A new material property object whose type property is MDLMaterialPropertyType.float4.

## Discussion

Discussion A 4-component vector can also be used to store RGBA color values. In this case, color components should be interpreted using the Rec. 709 color space standard.

## See Also

### Creating a Material Property

- [init(name:semantic:)](modelio/mdlmaterialproperty/init(name:semantic:).md)
- [init(name:semantic:string:)](modelio/mdlmaterialproperty/init(name:semantic:string:).md)
- [init(name:semantic:url:)](modelio/mdlmaterialproperty/init(name:semantic:url:)-2ldk4.md)
- [init(name:semantic:textureSampler:)](modelio/mdlmaterialproperty/init(name:semantic:texturesampler:).md)
- [init(name:semantic:color:)](modelio/mdlmaterialproperty/init(name:semantic:color:).md)
- [init(name:semantic:float:)](modelio/mdlmaterialproperty/init(name:semantic:float:).md)
- [init(name:semantic:float2:)](modelio/mdlmaterialproperty/init(name:semantic:float2:).md)
- [init(name:semantic:float3:)](modelio/mdlmaterialproperty/init(name:semantic:float3:).md)
- [init(name:semantic:matrix4x4:)](modelio/mdlmaterialproperty/init(name:semantic:matrix4x4:).md)
