Show / Hide Table of Contents

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 Source

GetRendererBounds(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
| Improve this Doc View Source

ResetLocalProps(Transform, Boolean)

Declaration
public static void ResetLocalProps(this Transform transform, bool resetScale = true)
Parameters
Type Name Description
UnityEngine.Transform transform
System.Boolean resetScale
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
| Improve this Doc View Source

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
  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX