Class Extensions
Inheritance
System.Object
Extensions
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Namespace: HurricaneVR.Framework.Core.Utils
Assembly: HurricaneVR.Framework.dll
Syntax
public static class Extensions
Methods
| Improve this Doc View SourceGetRendererBounds(Transform, Boolean)
Declaration
public static Bounds GetRendererBounds(this Transform transform, bool requireEnabled = true)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
System.Boolean | requireEnabled |
Returns
Type | Description |
---|---|
UnityEngine.Bounds |
ResetLocalProps(Transform, Boolean)
Declaration
public static void ResetLocalProps(this Transform transform, bool resetScale = true)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
System.Boolean | resetScale |
SetLayerRecursive(Transform, HVRLayers, Transform)
Declaration
public static void SetLayerRecursive(this Transform transform, HVRLayers layer, Transform except = null)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
HVRLayers | layer | |
UnityEngine.Transform | except |
SetLayerRecursive(Transform, Int32, Transform)
Declaration
public static void SetLayerRecursive(this Transform transform, int newLayer, Transform except = null)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
System.Int32 | newLayer | |
UnityEngine.Transform | except |
SetLayerRecursiveEx<T>(Transform, HVRLayers, T)
Sets layer recursively until another component of type T is found then stops.
Declaration
public static void SetLayerRecursiveEx<T>(this Transform transform, HVRLayers layer, T component)
where T : Component
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
HVRLayers | layer | |
T | component |
Type Parameters
Name | Description |
---|---|
T |
SetLayerRecursiveEx<T>(Transform, Int32, T)
Sets layer recursively until another component of type T is found then stops.
Declaration
public static void SetLayerRecursiveEx<T>(this Transform transform, int newLayer, T king)
where T : Component
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
System.Int32 | newLayer | |
T | king |
Type Parameters
Name | Description |
---|---|
T |
SetLayerTimeout(Transform, HVRLayers, Single)
Declaration
public static IEnumerator SetLayerTimeout(Transform transform, HVRLayers layer, float timeout)
Parameters
Type | Name | Description |
---|---|---|
UnityEngine.Transform | transform | |
HVRLayers | layer | |
System.Single | timeout |
Returns
Type | Description |
---|---|
System.Collections.IEnumerator |