wHiteRabbiT-sTudio Framework
wHiteRabbiT.Unity.Helper.UnityHelper Class Reference

Static Public Member Functions

static void SetLayerRecursively (GameObject go, int layer, bool saveOlds=true)
 
static void RestoreLayerRecursively (GameObject go)
 
static int GenerateLayerMask (params string[] LayerNames)
 
static int GenerateLayerMask (List< string > LayerNames)
 
static void EnableRendererRec (Transform tr, bool enabled)
 
static void DebugDrawCircle (Vector3 O, float r, int sides, Color color, Axes axe)
 
static void DebugDrawWireSphere (Vector3 O, float r, Color color)
 

Static Protected Attributes

static Dictionary< GameObject, int > goLayers
 

Member Function Documentation

static void wHiteRabbiT.Unity.Helper.UnityHelper.DebugDrawCircle ( Vector3  O,
float  r,
int  sides,
Color  color,
Axes  axe 
)
static
static void wHiteRabbiT.Unity.Helper.UnityHelper.DebugDrawWireSphere ( Vector3  O,
float  r,
Color  color 
)
static
static void wHiteRabbiT.Unity.Helper.UnityHelper.EnableRendererRec ( Transform  tr,
bool  enabled 
)
static
static int wHiteRabbiT.Unity.Helper.UnityHelper.GenerateLayerMask ( params string[]  LayerNames)
static
static int wHiteRabbiT.Unity.Helper.UnityHelper.GenerateLayerMask ( List< string >  LayerNames)
static
static void wHiteRabbiT.Unity.Helper.UnityHelper.RestoreLayerRecursively ( GameObject  go)
static
static void wHiteRabbiT.Unity.Helper.UnityHelper.SetLayerRecursively ( GameObject  go,
int  layer,
bool  saveOlds = true 
)
static

Member Data Documentation

Dictionary<GameObject, int> wHiteRabbiT.Unity.Helper.UnityHelper.goLayers
staticprotected

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