DeepSearch

From Unify Community Wiki
Revision as of 04:10, 17 January 2008 by Llavigne (Talk | contribs)

Jump to: navigation, search

How to use

drop the script on a gameobject, returns a transform. deepSearch ( String ) : Transform

CODE

static function deepSearch (t : Transform, s : String) : Transform { var dt : Transform = t.Find (s); if (dt) return dt; else { for (var child : Transform in t) { dt = deepSearch (child, s); if (dt) return dt; } } return null; }

Personal tools
Namespaces

Variants
Actions
Navigation
Extras
Toolbox