# SAnimationState

**成员** 8

|      |                                     |                                                                    |
| ---- | ----------------------------------- | ------------------------------------------------------------------ |
| 属性 | [Enabled](#enabled)                 | Is this Animation State enabled?                                   |
| 属性 | [Length](#length)                   | Returns the length of current animation.                           |
| 属性 | [Name](#name)                       | Returns the name of current animation.                             |
| 属性 | [NormalizedSpeed](#normalizedspeed) | Returns the normalized speed of current animation.                 |
| 属性 | [NormalizedTime](#normalizedtime)   | Returns the normalized time of current animation.                  |
| 属性 | [Speed](#speed)                     | The playback speed of the animation. 1.0 is normal playback speed. |
| 属性 | [Time](#time)                       | Returns the Time of current animation.                             |
| 属性 | [Weight](#weight)                   | Returns the Weight of current animation.                           |

## 属性

### Enabled

bool Enabled {get; set; }

Is this Animation State enabled?

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Enabled = false

```

### Length

float Length {get; }

Returns the length of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
length = SAnimationState.Length

```

### Name

string Name {get; }

Returns the name of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
name = SAnimationState.Name

```

### NormalizedSpeed

float NormalizedSpeed {get; set; }

Returns the normalized speed of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
normalizedSpeed = SAnimationState.NormalizedSpeed

```

### NormalizedTime

float NormalizedTime {get; set; }

Returns the normalized time of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
normalizedTime = SAnimationState.NormalizedTime

```

### Speed

float Speed {get; set; }

The playback speed of the animation. 1.0 is normal playback speed.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Speed = 0.5

```

### Time

float Time {get; set; }

Returns the Time of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Time = 0.5

```

### Weight

float Weight {get; set; }

Returns the Weight of current animation.

示例

**Lua**

```lua
SAnimationState = Space.Host.ExecutingObject.Animation.GetState()
SAnimationState.Weight = 0.5

```
