Tanoda
Macro Class Reference
Inheritance diagram for Macro:

Static Public Member Functions

static string T (string key)
 
static float StoF (string value)
 
static string FtoS (float value, char separator='.')
 
static string DecodeEncodedUTF8String (string encoded)
 
static string GetFileNameForGameObject (GILES.Serialization.pb_SceneNode sn, string go, out string modelName)
 
static bool IsSupported (string ext)
 
static Transform FindDeepChild (Transform aParent, string aName)
 
static string NormalizeFraction (string value)
 
static string NormalizeFraction (string value, char separator)
 
static string StripPath (string value)
 
static float SmallestAxis (Vector3 v)
 
static float LargestAxis (Vector3 v)
 
static void GetAllPossibleFileName (GILES.Serialization.pb_SceneNode node, ref List< string > list)
 
static int FindClosingBracketIndex (string text, char openedBracket='{', char closedBracket='}')
 
static void ChangeMaterialsModeToFadeMode (Material[] mats)
 
static void SetMaterialAlpha (Material[] mats, float value)
 
static Vector3 LerpAngle (Vector3 from, Vector3 to, float t)
 
static Vector3 ClampAngle (Vector3 value)
 
static float MinMaxClamp (float value, float min, float max)
 
static float ClampAngle (float value)
 
static void Resize (Texture2D texture2D, int targetX, int targetY, bool mipmap=true, FilterMode filter=FilterMode.Bilinear)
 
static void SetStatic (GameObject go)
 
static void cacheAllTCD ()
 
static void SetInteractable (GameObject go, bool isKinematic=true)
 
static Bounds GetBounds (GameObject go)
 
static byte[] Compress (byte[] byteArray)
 
static byte[] Decompress (byte[] bytes)
 
static void SetLayerRecursive (GameObject go, string layerName)
 
static void SetLayer (GameObject go, string layerName)
 
static bool IsInChild (Transform t, string childName)
 
static Collider[] CollidesWithWhat (Bounds bounds, bool skipHand=true)
 
static bool CollidesWithActiveTCD (GameObject bounds, bool skipHand=true)
 
static bool CollidesWithTwoHandGrab (GameObject bounds, bool skipHand=true)
 
static bool CollidesWithSnapOnAttach (GameObject bounds, bool skipHand=true)
 
static List< GameObject > CollidesWithFingersColliders (GameObject bounds, bool skipHand=true)
 
static List< GameObject > CollidesWithFingers (GameObject bounds, bool skipHand=true)
 
static GameObject[] CollidesWithWhat (Collider[] allCollider, Renderer renderer, Vector3 targetPos, Vector3 targetRot, bool breakAtFirstFind=true)
 
static bool IsInside (Collider c, Vector3 point)
 
static Vector3 RotatePointAroundPivot (Vector3 point, Vector3 pivot, Vector3 angles)
 
static Vector3 ProjectPointLine (Vector3 point, Vector3 lineStart, Vector3 lineEnd)
 
static float DistancePointLine (Vector3 point, Vector3 lineStart, Vector3 lineEnd)
 
static bool VectorCompare (Vector3 me, Vector3 other, float percentage)
 
static Vector3 AngleLerp (Vector3 StartAngle, Vector3 FinishAngle, float t)
 

Detailed Description

Definition at line 11 of file Macro.cs.

Member Function Documentation

◆ AngleLerp()

static Vector3 Macro.AngleLerp ( Vector3  StartAngle,
Vector3  FinishAngle,
float  t 
)
static

Definition at line 954 of file Macro.cs.

◆ cacheAllTCD()

static void Macro.cacheAllTCD ( )
static

Definition at line 430 of file Macro.cs.

◆ ChangeMaterialsModeToFadeMode()

static void Macro.ChangeMaterialsModeToFadeMode ( Material[]  mats)
static

Definition at line 276 of file Macro.cs.

◆ ClampAngle() [1/2]

static float Macro.ClampAngle ( float  value)
static

Definition at line 344 of file Macro.cs.

◆ ClampAngle() [2/2]

static Vector3 Macro.ClampAngle ( Vector3  value)
static

Definition at line 303 of file Macro.cs.

◆ CollidesWithActiveTCD()

static bool Macro.CollidesWithActiveTCD ( GameObject  bounds,
bool  skipHand = true 
)
static

Definition at line 596 of file Macro.cs.

◆ CollidesWithFingers()

static List< GameObject > Macro.CollidesWithFingers ( GameObject  bounds,
bool  skipHand = true 
)
static

Definition at line 777 of file Macro.cs.

◆ CollidesWithFingersColliders()

static List< GameObject > Macro.CollidesWithFingersColliders ( GameObject  bounds,
bool  skipHand = true 
)
static

Definition at line 734 of file Macro.cs.

◆ CollidesWithSnapOnAttach()

static bool Macro.CollidesWithSnapOnAttach ( GameObject  bounds,
bool  skipHand = true 
)
static

Definition at line 689 of file Macro.cs.

◆ CollidesWithTwoHandGrab()

static bool Macro.CollidesWithTwoHandGrab ( GameObject  bounds,
bool  skipHand = true 
)
static

Definition at line 637 of file Macro.cs.

◆ CollidesWithWhat() [1/2]

static Collider[] Macro.CollidesWithWhat ( Bounds  bounds,
bool  skipHand = true 
)
static

Definition at line 569 of file Macro.cs.

◆ CollidesWithWhat() [2/2]

static GameObject[] Macro.CollidesWithWhat ( Collider[]  allCollider,
Renderer  renderer,
Vector3  targetPos,
Vector3  targetRot,
bool  breakAtFirstFind = true 
)
static

Definition at line 832 of file Macro.cs.

◆ Compress()

static byte[] Macro.Compress ( byte[]  byteArray)
static

Definition at line 497 of file Macro.cs.

◆ DecodeEncodedUTF8String()

static string Macro.DecodeEncodedUTF8String ( string  encoded)
static

Definition at line 45 of file Macro.cs.

◆ Decompress()

static byte[] Macro.Decompress ( byte[]  bytes)
static

Definition at line 516 of file Macro.cs.

◆ DistancePointLine()

static float Macro.DistancePointLine ( Vector3  point,
Vector3  lineStart,
Vector3  lineEnd 
)
static

Definition at line 935 of file Macro.cs.

◆ FindClosingBracketIndex()

static int Macro.FindClosingBracketIndex ( string  text,
char  openedBracket = '{',
char  closedBracket = '}' 
)
static

Definition at line 249 of file Macro.cs.

◆ FindDeepChild()

static Transform Macro.FindDeepChild ( Transform  aParent,
string  aName 
)
static

Definition at line 149 of file Macro.cs.

◆ FtoS()

static string Macro.FtoS ( float  value,
char  separator = '.' 
)
static

Definition at line 37 of file Macro.cs.

◆ GetAllPossibleFileName()

static void Macro.GetAllPossibleFileName ( GILES.Serialization.pb_SceneNode  node,
ref List< string >  list 
)
static

Definition at line 213 of file Macro.cs.

◆ GetBounds()

static Bounds Macro.GetBounds ( GameObject  go)
static

Definition at line 482 of file Macro.cs.

◆ GetFileNameForGameObject()

static string Macro.GetFileNameForGameObject ( GILES.Serialization.pb_SceneNode  sn,
string  go,
out string  modelName 
)
static

Definition at line 51 of file Macro.cs.

◆ IsInChild()

static bool Macro.IsInChild ( Transform  t,
string  childName 
)
static

Definition at line 552 of file Macro.cs.

◆ IsInside()

static bool Macro.IsInside ( Collider  c,
Vector3  point 
)
static

Definition at line 873 of file Macro.cs.

◆ IsSupported()

static bool Macro.IsSupported ( string  ext)
static

Definition at line 75 of file Macro.cs.

◆ LargestAxis()

static float Macro.LargestAxis ( Vector3  v)
static

Definition at line 198 of file Macro.cs.

◆ LerpAngle()

static Vector3 Macro.LerpAngle ( Vector3  from,
Vector3  to,
float  t 
)
static

Definition at line 298 of file Macro.cs.

◆ MinMaxClamp()

static float Macro.MinMaxClamp ( float  value,
float  min,
float  max 
)
static

Definition at line 337 of file Macro.cs.

◆ NormalizeFraction() [1/2]

static string Macro.NormalizeFraction ( string  value)
static

Definition at line 164 of file Macro.cs.

◆ NormalizeFraction() [2/2]

static string Macro.NormalizeFraction ( string  value,
char  separator 
)
static

Definition at line 173 of file Macro.cs.

◆ ProjectPointLine()

static Vector3 Macro.ProjectPointLine ( Vector3  point,
Vector3  lineStart,
Vector3  lineEnd 
)
static

Definition at line 909 of file Macro.cs.

◆ Resize()

static void Macro.Resize ( Texture2D  texture2D,
int  targetX,
int  targetY,
bool  mipmap = true,
FilterMode  filter = FilterMode.Bilinear 
)
static

Definition at line 359 of file Macro.cs.

◆ RotatePointAroundPivot()

static Vector3 Macro.RotatePointAroundPivot ( Vector3  point,
Vector3  pivot,
Vector3  angles 
)
static

Definition at line 892 of file Macro.cs.

◆ SetInteractable()

static void Macro.SetInteractable ( GameObject  go,
bool  isKinematic = true 
)
static

Definition at line 439 of file Macro.cs.

◆ SetLayer()

static void Macro.SetLayer ( GameObject  go,
string  layerName 
)
static

Definition at line 546 of file Macro.cs.

◆ SetLayerRecursive()

static void Macro.SetLayerRecursive ( GameObject  go,
string  layerName 
)
static

Definition at line 534 of file Macro.cs.

◆ SetMaterialAlpha()

static void Macro.SetMaterialAlpha ( Material[]  mats,
float  value 
)
static

Definition at line 290 of file Macro.cs.

◆ SetStatic()

static void Macro.SetStatic ( GameObject  go)
static

Definition at line 388 of file Macro.cs.

◆ SmallestAxis()

static float Macro.SmallestAxis ( Vector3  v)
static

Definition at line 185 of file Macro.cs.

◆ StoF()

static float Macro.StoF ( string  value)
static

Definition at line 24 of file Macro.cs.

◆ StripPath()

static string Macro.StripPath ( string  value)
static

Definition at line 180 of file Macro.cs.

◆ T()

static string Macro.T ( string  key)
static

Definition at line 19 of file Macro.cs.

◆ VectorCompare()

static bool Macro.VectorCompare ( Vector3  me,
Vector3  other,
float  percentage 
)
static

Definition at line 940 of file Macro.cs.


The documentation for this class was generated from the following file: