---
title: "weight(forTargetAt:)"
framework: scenekit
role: symbol
role_heading: Instance Method
path: "scenekit/scnmorpher/weight(fortargetat:)"
---

# weight(forTargetAt:)

Returns the weight value for the specified target index.

## Declaration

```swift
func weight(forTargetAt targetIndex: Int) -> CGFloat
```

## Parameters

- `targetIndex`: The index of a geometry in the morpher’s doc://com.apple.scenekit/documentation/SceneKit/SCNMorpher/targets array.

## Return Value

Return Value A number indicating the contribution of the target geometry to the blended surface, generally between 0.0 and 1.0.

## Discussion

Discussion Target geometries and their weights determine the current form of the surface produced by the morpher. For example, if a morpher has one target whose weight is 0.5, the form of the resulting surface will be halfway between those of the base geometry and the target geometry.

## See Also

### Blending between Morph Targets

- [setWeight(_:forTargetAt:)](scenekit/scnmorpher/setweight(_:fortargetat:).md)
