VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
static string AVR.Core.Utils.Misc.GetHierarchyPath ( Transform  self)
inlinestatic

Returns location within the hierarchy of a scene object.

Parameters
selfTransform component of object in question
Returns
Hierarchy location formated as a directory-string

Definition at line 176 of file AVR_Utils.cs.

177  {
178  string path = self.gameObject.name;
179  Transform p = self.parent;
180  while (p != null)
181  {
182  path = p.name + "/" + path;
183  p = p.parent;
184  }
185  return path;
186  }