---
title: vectorFloat2Value
framework: spritekit
role: symbol
role_heading: Instance Property
path: spritekit/skattributevalue/vectorfloat2value
---

# vectorFloat2Value

The receiver’s value as a vector of two floating-point numbers.

## Declaration

```swift
var vectorFloat2Value: vector_float2 { get set }
```

## Discussion

Discussion If the receiver’s original value is a floating-point number, the second item of the vector is set to 0. If the receiver’s original value is a vector of more than two items, the additional items are truncated.

## See Also

### Instance Properties

- [floatValue](spritekit/skattributevalue/floatvalue.md)
- [vectorFloat3Value](spritekit/skattributevalue/vectorfloat3value.md)
- [vectorFloat4Value](spritekit/skattributevalue/vectorfloat4value.md)
