public static Option <BlendTree> FindBlendTree(this IAnimationGraph graph, string path) { Ensure.That(graph, nameof(graph)).IsNotNull(); return(graph.FindDescendantGraph <BlendTree>(path)); }
public static Option <IAnimationControl> FindDescendantControl( this IAnimationGraph graph, string path) => path.Split("/").Rev().Match( () => None, graph.FindControl, (x, xs) => graph.FindDescendantGraph(string.Join("/", xs.Rev())).Bind(p => p.FindControl(x)));