VR Development Framework
v 1.0.0
Main Page
Related Pages
Namespaces
Classes
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Events
Pages
AVR
Core
Utils
Misc
CreateEmptyGameObject
CreateEmptyGameObject
GetAttribute< TAttribute >
GetHierarchyPath
GlobalFind
Image2Texture
static TAttribute AVR.Core.Utils.Misc.GetAttribute< TAttribute >
(
this System.Type
type
)
inline
static
Get custom System.Attribute from a given type
Parameters
type
Type to get Attribute from
Template Parameters
TAttribute
Attribute type to retrive
Returns
First attribute of given type attatched to given type.
Type Constraints
TAttribute
:
System.Attribute
Definition at line
215
of file
AVR_Utils.cs
.
215
: System.Attribute
216
{
217
return
type.GetCustomAttributes(typeof(TAttribute),
true
).FirstOrDefault() as TAttribute;
218
}