# Keyframe

> A single keyframe that can be injected into an animation curve.

## Definition

* **Type:** Struct
* **Namespace:** [UnityEngine](/engine/6000.0/script-reference/unityengine.md)
* **Assembly:** UnityEngine.CoreModule

```csharp
public struct Keyframe
```

## Constructors

| Constructor                                                                                                                                                                                                   | Description        |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------ |
| [Keyframe(System.Single,System.Single)](/engine/6000.0/script-reference/unityengine/keyframe/ctor.md#keyframe\(float-float\))                                                                                 | Create a keyframe. |
| [Keyframe(System.Single,System.Single,System.Single,System.Single)](/engine/6000.0/script-reference/unityengine/keyframe/ctor.md#keyframe\(float-float-float-float\))                                         | Create a keyframe. |
| [Keyframe(System.Single,System.Single,System.Single,System.Single,System.Single,System.Single)](/engine/6000.0/script-reference/unityengine/keyframe/ctor.md#keyframe\(float-float-float-float-float-float\)) | Create a keyframe. |

## Properties

| Property                                                                             | Description                                                                                                                    |
| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
| [inTangent](/engine/6000.0/script-reference/unityengine/keyframe/intangent.md)       | Sets the incoming tangent for this key. The incoming tangent affects the slope of the curve from the previous key to this key. |
| [inWeight](/engine/6000.0/script-reference/unityengine/keyframe/inweight.md)         | Sets the incoming weight for this key. The incoming weight affects the slope of the curve from the previous key to this key.   |
| [outTangent](/engine/6000.0/script-reference/unityengine/keyframe/outtangent.md)     | Sets the outgoing tangent for this key. The outgoing tangent affects the slope of the curve from this key to the next key.     |
| [outWeight](/engine/6000.0/script-reference/unityengine/keyframe/outweight.md)       | Sets the outgoing weight for this key. The outgoing weight affects the slope of the curve from this key to the next key.       |
| [time](/engine/6000.0/script-reference/unityengine/keyframe/time.md)                 | The time of the keyframe.                                                                                                      |
| [value](/engine/6000.0/script-reference/unityengine/keyframe/value.md)               | The value of the curve at keyframe.                                                                                            |
| [weightedMode](/engine/6000.0/script-reference/unityengine/keyframe/weightedmode.md) | Weighted mode for the keyframe.                                                                                                |
