DeepSearch

From Unify Community Wiki
(Difference between revisions)
Jump to: navigation, search
(How to use)
Line 1: Line 1:
==How to use==
+
==Script==
drop the script on a gameobject, returns a transform.
+
<javascript>
deepSearch ( String ) : Transform
+
  
==CODE==
 
 
static function deepSearch (t : Transform, s : String) : Transform
 
static function deepSearch (t : Transform, s : String) : Transform
 
{
 
{

Revision as of 04:11, 17 January 2008

Script

<javascript>

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