VR Development Framework
v 1.0.0
 All Classes Namespaces Functions Variables Enumerations Enumerator Properties Events Pages
Static Public Member Functions | List of all members
AVR.Core.Utils.Misc Class Reference

Misc. utility functions. More...

Static Public Member Functions

static string GetHierarchyPath (Transform self)
 Returns location within the hierarchy of a scene object. More...
 
static Object GlobalFind (string name, System.Type type)
 Finds an Object in the Scene by name and type including inactive ones More...
 
static TAttribute GetAttribute< TAttribute > (this System.Type type)
 Get custom System.Attribute from a given type More...
 
static Texture2D Image2Texture (string path)
 Creates a Texture2D object from a given image path More...
 
static Transform CreateEmptyGameObject (string name, Transform parent, Vector3 worldPos, Quaternion worldRot)
 Creates an empty gameobject with specifed position and rotation. Returns its transform component. More...
 
static Transform CreateEmptyGameObject (string name="EmptyTransform", Transform parent=null)
 Creates an empty gameobject with a localposition and rotation of zero. Returns its transform component. More...
 

Detailed Description

Misc. utility functions.

Definition at line 170 of file AVR_Utils.cs.