Battle Talent  V11
Static Public Member Functions | List of all members
CrossLink.TransformHelper Class Reference

Static Public Member Functions

static int FindClosestPoint (Vector3 dest, Transform[] points, bool ignoreY=true)
 
static void CollectPrefabData (string path, Dictionary< string, string > prefabPath)
 
static void SetLayerAll (this Transform tobj, int layer)
 
static T GetComponentFromRoot< T > (this Transform tobj)
 
static int GetParentDepth (this Transform tobj, Transform checkParent, int depth=0)
 
static void GetOneComponentInEachChild< T > (Transform trans, List< T > list, bool ignoreInactive=true)
 
static Transform FindInChildren (this Transform tran, string name, bool contain=false)
 
static Transform ProcessInChildren (this Transform tran, string name, System.Action< Transform > proc, bool contain=false)
 
static string GetNameWithoutClone (string n)
 
static string GetPath (Transform trans)
 
static string GetRelativePath (Transform trans, Transform root)
 
static void CopyAllTransform (Transform tranFrom, Transform tranTo)
 
static void ResetLocalTransform (this Transform t)
 
static void ResetLocalPositionAndRotation (this Transform t)
 
static void RemoveChildren (this Transform t)
 
static void ResetTransform (this Transform t)
 
static int IndexOfEquals< T > (T[] array, T target)
 
static int IndexOfRef< T > (T[] array, T target)