- Home /
Duplicate Question
is it possible to read states / transitions from mecanim in runtime ?
minimum: i would like to know what state is mecanim on current gameobject, which transitions goes from the state and also states at the end of the transition
comfortable: same like 1 and i'd like to have access to all mecanim data in runtime
(i already know how to read stuff in editor http://answers.unity3d.com/questions/581125/is-it-possible-to-extend-mecanim.html , i am looking for the feature in runtime)
Answer by komodor · Jan 22, 2014 at 08:00 PM
well however sfbaystuios smart you think, it's not possible and your answer is irrelevant
http://answers.unity3d.com/questions/418854/getting-a-list-of-mecanim-states-in-animator.html
Answer by infinitypbr · Dec 05, 2013 at 12:35 AM
http://docs.unity3d.com/Documentation/ScriptReference/Animator.html
http://docs.unity3d.com/Documentation/ScriptReference/Animator.GetCurrentAnimatorStateInfo.html
have you actually try it? how do i get current state or state array or next state? how do i get all transitions from the current state?
because http://docs.unity3d.com/Documentation/ScriptReference/AnimatorStateInfo.html has no info about transitions and http://docs.unity3d.com/Documentation/ScriptReference/Animator.GetAnimatorTransitionInfo.html has probably info only about current (running) transition
if you can really help (cause i red the animator reference page few times and still don't get it) so please!