---
title: Create(string, Type, string, float)
product: Unity Editor
version: '7000.0'
latest_version: '7000.0'
status: This page documents version 7000.0. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/floatchannel/create
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unity/animations/floatchannel/create.md
last_updated: 2026-11-30
generated_at: 2026-11-30T21:02:19.953Z
locale: en-us
---

# Create(string, Type, string, float)

> Create a FloatChannel from a transform path, a component type and an attribute name.

## Definition

* **Type:** Method
* **Namespace:** [Unity.Animations](/engine/7000.0/script-reference/unity/animations.md)
* **Assembly:** [UnityEngine.AnimationCoreModule](/engine/7000.0/script-reference/modules/unityengine-animationcoremodule.md)

```csharp
[ExcludeFromBurstCompatTesting("Takes managed string")]
public static FloatChannel Create(string path, Type type, string attributeName, float defaultValue)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The transform path to the object to animate.**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type of the object to animate.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the property to animate on the object.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Default float value.

### Returns

| Type                                                                             | Description             |
| -------------------------------------------------------------------------------- | ----------------------- |
| [FloatChannel](/engine/7000.0/script-reference/unity/animations/floatchannel.md) | Returns a FloatChannel. |
