Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IsName(string)

Does name match the name of the active state in the statemachine?
Read time 1 minuteLast updated 13 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.AnimationModule
public bool IsName(string name)

Parameters

name

Returns

Type

Description

bool

Remarks

The name should be in the form Layer.Name or Layer.SubStateMachine.Name. For example,
Base.Idle
or
Base.RunSM.JogForward
.