• Articles
  • Tutorials
  • Api Documentation
  • Api Documentation
  • Valve.VR.InteractionSystem
  • Util

    Show / Hide Table of Contents
    • Valve.VR
      • AppOverrideKeys_t
      • CameraVideoStreamFrameHeader_t
      • ChaperoneCalibrationState
      • Compositor_CumulativeStats
      • Compositor_FrameTiming
      • Compositor_OverlaySettings
      • COpenVRContext
      • CVRApplications
      • CVRChaperone
      • CVRChaperoneSetup
      • CVRCompositor
      • CVRDriverManager
      • CVRExtendedDisplay
      • CVRInput
      • CVRIOBuffer
      • CVRNotifications
      • CVROverlay
      • CVRRenderModels
      • CVRResources
      • CVRScreenshots
      • CVRSettingHelper
      • CVRSettings
      • CVRSpatialAnchors
      • CVRSystem
      • CVRTrackedCamera
      • D3D12TextureData_t
      • DistortionCoordinates_t
      • DriverDirectMode_FrameTiming
      • EAdditionalRadioFeatures
      • EChaperoneConfigFile
      • EChaperoneImportFlags
      • ECollisionBoundsStyle
      • EColorSpace
      • EDeviceActivityLevel
      • EDualAnalogWhich
      • EGamepadTextInputLineMode
      • EGamepadTextInputMode
      • EHDCPError
      • EHiddenAreaMeshType
      • EIOBufferError
      • EIOBufferMode
      • EOverlayDirection
      • EShowUIType
      • ETextureType
      • ETrackedControllerRole
      • ETrackedDeviceClass
      • ETrackedDeviceProperty
      • ETrackedPropertyError
      • ETrackingResult
      • ETrackingUniverseOrigin
      • EVRApplicationError
      • EVRApplicationProperty
      • EVRApplicationTransitionState
      • EVRApplicationType
      • EVRButtonId
      • EVRComponentProperty
      • EVRCompositorError
      • EVRCompositorTimingMode
      • EVRControllerAxisType
      • EVRControllerEventOutputType
      • EVRDistortionFunctionType
      • EVREventType
      • EVREye
      • EVRFinger
      • EVRFingerSplay
      • EVRFirmwareError
      • EVRInitError
      • EVRInputError
      • EVRInputFilterCancelType
      • EVRInputStringBits
      • EVRMouseButton
      • EVRMuraCorrectionMode
      • EVRNotificationError
      • EVRNotificationStyle
      • EVRNotificationType
      • EVROverlayError
      • EVROverlayIntersectionMaskPrimitiveType
      • EVRRenderModelError
      • EVRScreenshotError
      • EVRScreenshotPropertyFilenames
      • EVRScreenshotType
      • EVRSettingsError
      • EVRSkeletalMotionRange
      • EVRSkeletalReferencePose
      • EVRSkeletalTrackingLevel
      • EVRSkeletalTransformSpace
      • EVRSpatialAnchorError
      • EVRState
      • EVRSubmitFlags
      • EVRTrackedCameraError
      • EVRTrackedCameraFrameLayout
      • EVRTrackedCameraFrameType
      • EVSync
      • HiddenAreaMesh_t
      • HmdColor_t
      • HmdMatrix33_t
      • HmdMatrix34_t
      • HmdMatrix44_t
      • HmdQuad_t
      • HmdQuaternion_t
      • HmdQuaternionf_t
      • HmdRect2_t
      • HmdVector2_t
      • HmdVector3_t
      • HmdVector3d_t
      • HmdVector4_t
      • Imu_OffScaleFlags
      • ImuSample_t
      • InputAnalogActionData_t
      • InputDigitalActionData_t
      • InputOriginInfo_t
      • InputPoseActionData_t
      • InputSkeletalActionData_t
      • IntersectionMaskCircle_t
      • IntersectionMaskRectangle_t
      • ISteamVR_Action
      • ISteamVR_Action_Boolean
      • ISteamVR_Action_In
      • ISteamVR_Action_In_Source
      • ISteamVR_Action_Out
      • ISteamVR_Action_Out_Source
      • ISteamVR_Action_Pose
      • ISteamVR_Action_Single
      • ISteamVR_Action_Skeleton_Source
      • ISteamVR_Action_Source
      • ISteamVR_Action_Vector2
      • ISteamVR_Action_Vector3
      • ISteamVR_Action_Vibration
      • ISteamVR_ActionSet
      • IVRApplications
      • IVRChaperone
      • IVRChaperoneSetup
      • IVRCompositor
      • IVRDriverManager
      • IVRExtendedDisplay
      • IVRInput
      • IVRIOBuffer
      • IVRNotifications
      • IVROverlay
      • IVRRenderModels
      • IVRResources
      • IVRScreenshots
      • IVRSettings
      • IVRSpatialAnchors
      • IVRSystem
      • IVRTrackedCamera
      • NotificationBitmap_t
      • OpenVR
      • OpenVRInterop
      • RenderModel_ComponentState_t
      • RenderModel_ControllerMode_State_t
      • RenderModel_t
      • RenderModel_t_Packed
      • RenderModel_TextureMap_t
      • RenderModel_TextureMap_t_Packed
      • RenderModel_Vertex_t
      • SkeletalMotionRangeChange
      • SpatialAnchorPose_t
      • SteamVR
      • SteamVR.InitializedStates
      • SteamVR_Action
      • SteamVR_Action_Boolean
      • SteamVR_Action_Boolean.ActiveChangeHandler
      • SteamVR_Action_Boolean.ChangeHandler
      • SteamVR_Action_Boolean.StateDownHandler
      • SteamVR_Action_Boolean.StateHandler
      • SteamVR_Action_Boolean.StateUpHandler
      • SteamVR_Action_Boolean.UpdateHandler
      • SteamVR_Action_Boolean_Source
      • SteamVR_Action_Boolean_Source_Map
      • SteamVR_Action_In_Source
      • SteamVR_Action_In_Source_Map<SourceElement>
      • SteamVR_Action_In<SourceMap, SourceElement>
      • SteamVR_Action_Out_Source
      • SteamVR_Action_Out<SourceMap, SourceElement>
      • SteamVR_Action_Pose
      • SteamVR_Action_Pose.ActiveChangeHandler
      • SteamVR_Action_Pose.ChangeHandler
      • SteamVR_Action_Pose.DeviceConnectedChangeHandler
      • SteamVR_Action_Pose.TrackingChangeHandler
      • SteamVR_Action_Pose.UpdateHandler
      • SteamVR_Action_Pose.ValidPoseChangeHandler
      • SteamVR_Action_Pose_Base<SourceMap, SourceElement>
      • SteamVR_Action_Pose_Source
      • SteamVR_Action_Pose_Source_Map<Source>
      • SteamVR_Action_Single
      • SteamVR_Action_Single.ActiveChangeHandler
      • SteamVR_Action_Single.AxisHandler
      • SteamVR_Action_Single.ChangeHandler
      • SteamVR_Action_Single.UpdateHandler
      • SteamVR_Action_Single_Source
      • SteamVR_Action_Single_Source_Map
      • SteamVR_Action_Skeleton
      • SteamVR_Action_Skeleton.ActiveChangeHandler
      • SteamVR_Action_Skeleton.ChangeHandler
      • SteamVR_Action_Skeleton.DeviceConnectedChangeHandler
      • SteamVR_Action_Skeleton.TrackingChangeHandler
      • SteamVR_Action_Skeleton.UpdateHandler
      • SteamVR_Action_Skeleton.ValidPoseChangeHandler
      • SteamVR_Action_Skeleton_Source
      • SteamVR_Action_Skeleton_Source_Map
      • SteamVR_Action_Source
      • SteamVR_Action_Source_Map
      • SteamVR_Action_Source_Map<SourceElement>
      • SteamVR_Action_Vector2
      • SteamVR_Action_Vector2.ActiveChangeHandler
      • SteamVR_Action_Vector2.AxisHandler
      • SteamVR_Action_Vector2.ChangeHandler
      • SteamVR_Action_Vector2.UpdateHandler
      • SteamVR_Action_Vector2_Source
      • SteamVR_Action_Vector2_Source_Map
      • SteamVR_Action_Vector3
      • SteamVR_Action_Vector3.ActiveChangeHandler
      • SteamVR_Action_Vector3.AxisHandler
      • SteamVR_Action_Vector3.ChangeHandler
      • SteamVR_Action_Vector3.UpdateHandler
      • SteamVR_Action_Vector3_Source
      • SteamVR_Action_Vector3_Source_Map
      • SteamVR_Action_Vibration
      • SteamVR_Action_Vibration.ActiveChangeHandler
      • SteamVR_Action_Vibration.ExecuteHandler
      • SteamVR_Action_Vibration_Source
      • SteamVR_Action_Vibration_Source_Map
      • SteamVR_Action<SourceMap, SourceElement>
      • SteamVR_ActionDirections
      • SteamVR_Actions
      • SteamVR_ActionSet
      • SteamVR_ActionSet_Data
      • SteamVR_ActionSet_Manager
      • SteamVR_ActivateActionSetOnLoad
      • SteamVR_Behaviour
      • SteamVR_Behaviour_Boolean
      • SteamVR_Behaviour_Boolean.ActiveChangeHandler
      • SteamVR_Behaviour_Boolean.ChangeHandler
      • SteamVR_Behaviour_Boolean.StateDownHandler
      • SteamVR_Behaviour_Boolean.StateHandler
      • SteamVR_Behaviour_Boolean.StateUpHandler
      • SteamVR_Behaviour_Boolean.UpdateHandler
      • SteamVR_Behaviour_BooleanEvent
      • SteamVR_Behaviour_Pose
      • SteamVR_Behaviour_Pose.ActiveChangeHandler
      • SteamVR_Behaviour_Pose.ChangeHandler
      • SteamVR_Behaviour_Pose.DeviceConnectedChangeHandler
      • SteamVR_Behaviour_Pose.DeviceIndexChangedHandler
      • SteamVR_Behaviour_Pose.TrackingChangeHandler
      • SteamVR_Behaviour_Pose.UpdateHandler
      • SteamVR_Behaviour_Pose.ValidPoseChangeHandler
      • SteamVR_Behaviour_Pose_ConnectedChangedEvent
      • SteamVR_Behaviour_Pose_DeviceIndexChangedEvent
      • SteamVR_Behaviour_Pose_TrackingChangedEvent
      • SteamVR_Behaviour_PoseEvent
      • SteamVR_Behaviour_Single
      • SteamVR_Behaviour_Single.AxisHandler
      • SteamVR_Behaviour_Single.ChangeHandler
      • SteamVR_Behaviour_Single.UpdateHandler
      • SteamVR_Behaviour_SingleEvent
      • SteamVR_Behaviour_Skeleton
      • SteamVR_Behaviour_Skeleton.ActiveChangeHandler
      • SteamVR_Behaviour_Skeleton.ChangeHandler
      • SteamVR_Behaviour_Skeleton.DeviceConnectedChangeHandler
      • SteamVR_Behaviour_Skeleton.MirrorType
      • SteamVR_Behaviour_Skeleton.TrackingChangeHandler
      • SteamVR_Behaviour_Skeleton.UpdateHandler
      • SteamVR_Behaviour_Skeleton.ValidPoseChangeHandler
      • SteamVR_Behaviour_Skeleton_ConnectedChangedEvent
      • SteamVR_Behaviour_Skeleton_TrackingChangedEvent
      • SteamVR_Behaviour_SkeletonCustom
      • SteamVR_Behaviour_SkeletonEvent
      • SteamVR_Behaviour_Vector2
      • SteamVR_Behaviour_Vector2.AxisHandler
      • SteamVR_Behaviour_Vector2.ChangeHandler
      • SteamVR_Behaviour_Vector2.UpdateHandler
      • SteamVR_Behaviour_Vector2Event
      • SteamVR_Behaviour_Vector3
      • SteamVR_Behaviour_Vector3.AxisHandler
      • SteamVR_Behaviour_Vector3.ChangeHandler
      • SteamVR_Behaviour_Vector3.UpdateHandler
      • SteamVR_Behaviour_Vector3Event
      • SteamVR_Camera
      • SteamVR_CameraFlip
      • SteamVR_CameraMask
      • SteamVR_Ears
      • SteamVR_Events
      • SteamVR_Events.Action
      • SteamVR_Events.Action<T>
      • SteamVR_Events.Action<T0, T1, T2>
      • SteamVR_Events.Action<T0, T1>
      • SteamVR_Events.ActionNoArgs
      • SteamVR_Events.Event
      • SteamVR_Events.Event<T>
      • SteamVR_Events.Event<T0, T1, T2>
      • SteamVR_Events.Event<T0, T1>
      • SteamVR_ExternalCamera
      • SteamVR_ExternalCamera.Config
      • SteamVR_Fade
      • SteamVR_Frustum
      • SteamVR_HistoryBuffer
      • SteamVR_HistoryStep
      • SteamVR_IK
      • SteamVR_Input
      • SteamVR_Input.PosesUpdatedHandler
      • SteamVR_Input.SkeletonsUpdatedHandler
      • SteamVR_Input_ActionSet_buggy
      • SteamVR_Input_ActionSet_default
      • SteamVR_Input_ActionSet_mixedreality
      • SteamVR_Input_ActionSet_platformer
      • SteamVR_Input_Source
      • SteamVR_Input_Sources
      • SteamVR_Input_Sources_Comparer
      • SteamVR_LoadLevel
      • SteamVR_Menu
      • SteamVR_Overlay
      • SteamVR_Overlay.IntersectionResults
      • SteamVR_PlayArea
      • SteamVR_PlayArea.Size
      • SteamVR_Render
      • SteamVR_RenderModel
      • SteamVR_RenderModel.RenderModel
      • SteamVR_RenderModel.RenderModelInterfaceHolder
      • SteamVR_RingBuffer<T>
      • SteamVR_Settings
      • SteamVR_Skeleton_FingerExtensionTypeLists
      • SteamVR_Skeleton_FingerExtensionTypes
      • SteamVR_Skeleton_FingerIndexEnum
      • SteamVR_Skeleton_FingerIndexes
      • SteamVR_Skeleton_FingerSplayIndexEnum
      • SteamVR_Skeleton_FingerSplayIndexes
      • SteamVR_Skeleton_HandMask
      • SteamVR_Skeleton_JointIndexEnum
      • SteamVR_Skeleton_JointIndexes
      • SteamVR_Skeleton_Pose
      • SteamVR_Skeleton_Pose_Hand
      • SteamVR_Skeleton_Poser
      • SteamVR_Skeleton_Poser.PoseBlendingBehaviour
      • SteamVR_Skeleton_Poser.PoseBlendingBehaviour.BlenderTypes
      • SteamVR_Skeleton_Poser.SkeletonBlendablePose
      • SteamVR_Skeleton_PoseSnapshot
      • SteamVR_Skybox
      • SteamVR_Skybox.CellSize
      • SteamVR_SphericalProjection
      • SteamVR_TrackedCamera
      • SteamVR_TrackedCamera.VideoStreamTexture
      • SteamVR_TrackedObject
      • SteamVR_TrackedObject.EIndex
      • SteamVR_UpdateModes
      • SteamVR_Utils
      • SteamVR_Utils.RigidTransform
      • SteamVR_Utils.SystemFn
      • Texture_t
      • TrackedDevicePose_t
      • VRActiveActionSet_t
      • VRBoneTransform_t
      • VRControllerAxis_t
      • VRControllerState_t
      • VRControllerState_t_Packed
      • VREvent_ApplicationLaunch_t
      • VREvent_Chaperone_t
      • VREvent_Controller_t
      • VREvent_Data_t
      • VREvent_DualAnalog_t
      • VREvent_EditingCameraSurface_t
      • VREvent_HapticVibration_t
      • VREvent_HDCPError_t
      • VREvent_InputActionManifestLoad_t
      • VREvent_InputBindingLoad_t
      • VREvent_Ipd_t
      • VREvent_Keyboard_t
      • VREvent_MessageOverlay_t
      • VREvent_Mouse_t
      • VREvent_Notification_t
      • VREvent_Overlay_t
      • VREvent_PerformanceTest_t
      • VREvent_Process_t
      • VREvent_ProgressUpdate_t
      • VREvent_Property_t
      • VREvent_Reserved_t
      • VREvent_Screenshot_t
      • VREvent_ScreenshotProgress_t
      • VREvent_Scroll_t
      • VREvent_SeatedZeroPoseReset_t
      • VREvent_ShowDevTools_t
      • VREvent_ShowUI_t
      • VREvent_SpatialAnchor_t
      • VREvent_Status_t
      • VREvent_t
      • VREvent_t_Packed
      • VREvent_TouchPadMove_t
      • VREvent_WebConsole_t
      • VRMessageOverlayResponse
      • VROverlayFlags
      • VROverlayInputMethod
      • VROverlayIntersectionMaskPrimitive_Data_t
      • VROverlayIntersectionMaskPrimitive_t
      • VROverlayIntersectionParams_t
      • VROverlayIntersectionResults_t
      • VROverlayTransformType
      • VRSkeletalSummaryData_t
      • VRTextureBounds_t
      • VRTextureDepthInfo_t
      • VRTextureWithDepth_t
      • VRTextureWithPose_t
      • VRTextureWithPoseAndDepth_t
      • VRVulkanTextureData_t
    • Valve.VR.InteractionSystem
      • AfterTimer_Component
      • AllowTeleportWhileAttachedToHand
      • ArcheryTarget
      • Arrow
      • ArrowHand
      • ArrowheadRotation
      • Balloon
      • Balloon.BalloonColor
      • BalloonColliders
      • BalloonHapticBump
      • BalloonSpawner
      • BodyCollider
      • ChaperoneInfo
      • CircularDrive
      • CircularDrive.Axis_t
      • ComplexThrowable
      • ComplexThrowable.AttachMode
      • ControllerButtonHints
      • ControllerHoverHighlight
      • CustomEvents
      • CustomEvents.UnityEventHand
      • CustomEvents.UnityEventSingleFloat
      • DebugUI
      • DestroyOnDetachedFromHand
      • DestroyOnParticleSystemDeath
      • DestroyOnTriggerEnter
      • DistanceHaptics
      • DontDestroyOnLoad
      • EnumFlags
      • EnumFlagsPropertyDrawer
      • Equippable
      • ExplosionWobble
      • FallbackCameraController
      • FireSource
      • GrabTypes
      • Hand
      • Hand.AttachedObject
      • Hand.AttachmentFlags
      • HandEditor
      • HandEvent
      • HapticRack
      • HideOnHandFocusLost
      • HoverButton
      • IgnoreHovering
      • IgnoreTeleportTrace
      • InputModule
      • Interactable
      • Interactable.OnAttachedToHandDelegate
      • Interactable.OnDetachedFromHandDelegate
      • InteractableDebug
      • InteractableHoverEvents
      • ItemPackage
      • ItemPackage.ItemPackageType
      • ItemPackageReference
      • ItemPackageSpawner
      • LinearAnimation
      • LinearAnimator
      • LinearAudioPitch
      • LinearBlendshape
      • LinearDisplacement
      • LinearDrive
      • LinearMapping
      • Longbow
      • Longbow.Handedness
      • ModalThrowable
      • Player
      • PlaySound
      • ReleaseStyle
      • RenderModel
      • SeeThru
      • SleepOnAwake
      • SoundBowClick
      • SoundDeparent
      • SoundPlayOneshot
      • SpawnAndAttachAfterControllerIsTracking
      • SpawnAndAttachToHand
      • Teleport
      • TeleportArc
      • TeleportArea
      • TeleportAreaEditor
      • TeleportMarkerBase
      • TeleportPoint
      • TeleportPoint.TeleportPointType
      • TeleportPointEditor
      • Throwable
      • UIElement
      • UIElementEditor
      • Unparent
      • Util
      • VelocityEstimator
      • WhichHand

    Class Util

    Inheritance
    System.Object
    Util
    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.ToString()
    System.Object.ReferenceEquals(System.Object, System.Object)
    Namespace: Valve.VR.InteractionSystem
    Assembly: Assembly-CSharp.dll
    Syntax
    public static class Util

    Fields

    CentimetersToFeet

    Declaration
    public const float CentimetersToFeet = 0.0328084F
    Field Value
    Type Description
    System.Single

    CentimetersToInches

    Declaration
    public const float CentimetersToInches = 0.393701F
    Field Value
    Type Description
    System.Single

    FeetToCentimeters

    Declaration
    public const float FeetToCentimeters = 30.48F
    Field Value
    Type Description
    System.Single

    FeetToMeters

    Declaration
    public const float FeetToMeters = 0.3048F
    Field Value
    Type Description
    System.Single

    InchesToCentimeters

    Declaration
    public const float InchesToCentimeters = 2.54F
    Field Value
    Type Description
    System.Single

    InchesToMeters

    Declaration
    public const float InchesToMeters = 0.0254F
    Field Value
    Type Description
    System.Single

    KilometersToMiles

    Declaration
    public const float KilometersToMiles = 0.621371F
    Field Value
    Type Description
    System.Single

    MetersToFeet

    Declaration
    public const float MetersToFeet = 3.28084F
    Field Value
    Type Description
    System.Single

    MetersToInches

    Declaration
    public const float MetersToInches = 39.3701F
    Field Value
    Type Description
    System.Single

    MilesToKilometers

    Declaration
    public const float MilesToKilometers = 1.60934F
    Field Value
    Type Description
    System.Single

    Methods

    AfterTimer(GameObject, Single, Action, Boolean)

    Declaration
    public static void AfterTimer(GameObject go, float _time, Action callback, bool trigger_if_destroyed_early = false)
    Parameters
    Type Name Description
    UnityEngine.GameObject go
    System.Single _time
    System.Action callback
    System.Boolean trigger_if_destroyed_early

    AngleOf(Vector2)

    Declaration
    public static float AngleOf(Vector2 v)
    Parameters
    Type Name Description
    UnityEngine.Vector2 v
    Returns
    Type Description
    System.Single

    Approach(Single, Single, Single)

    Declaration
    public static float Approach(float target, float value, float speed)
    Parameters
    Type Name Description
    System.Single target
    System.Single value
    System.Single speed
    Returns
    Type Description
    System.Single

    BezierInterpolate3(Vector3, Vector3, Vector3, Single)

    Declaration
    public static Vector3 BezierInterpolate3(Vector3 p0, Vector3 c0, Vector3 p1, float t)
    Parameters
    Type Name Description
    UnityEngine.Vector3 p0
    UnityEngine.Vector3 c0
    UnityEngine.Vector3 p1
    System.Single t
    Returns
    Type Description
    UnityEngine.Vector3

    BezierInterpolate4(Vector3, Vector3, Vector3, Vector3, Single)

    Declaration
    public static Vector3 BezierInterpolate4(Vector3 p0, Vector3 c0, Vector3 c1, Vector3 p1, float t)
    Parameters
    Type Name Description
    UnityEngine.Vector3 p0
    UnityEngine.Vector3 c0
    UnityEngine.Vector3 c1
    UnityEngine.Vector3 p1
    System.Single t
    Returns
    Type Description
    UnityEngine.Vector3

    ClosestPointOnLine(Vector3, Vector3, Vector3)

    Declaration
    public static Vector3 ClosestPointOnLine(Vector3 vA, Vector3 vB, Vector3 vPoint)
    Parameters
    Type Name Description
    UnityEngine.Vector3 vA
    UnityEngine.Vector3 vB
    UnityEngine.Vector3 vPoint
    Returns
    Type Description
    UnityEngine.Vector3

    ColorWithAlpha(Color, Single)

    Declaration
    public static Color ColorWithAlpha(this Color color, float alpha)
    Parameters
    Type Name Description
    UnityEngine.Color color
    System.Single alpha
    Returns
    Type Description
    UnityEngine.Color

    CombinePaths(String[])

    Declaration
    public static string CombinePaths(params string[] paths)
    Parameters
    Type Name Description
    System.String[] paths
    Returns
    Type Description
    System.String

    DrawCross(Vector3, Color, Single)

    Declaration
    public static void DrawCross(Vector3 origin, Color crossColor, float size)
    Parameters
    Type Name Description
    UnityEngine.Vector3 origin
    UnityEngine.Color crossColor
    System.Single size

    FastRemove<T>(List<T>, Int32)

    Declaration
    public static void FastRemove<T>(List<T> list, int index)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> list
    System.Int32 index
    Type Parameters
    Name Description
    T

    FindAndRemove<T>(List<T>, Predicate<T>)

    Declaration
    public static List<T> FindAndRemove<T>(List<T> list, Predicate<T> match)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> list
    System.Predicate<T> match
    Returns
    Type Description
    System.Collections.Generic.List<T>
    Type Parameters
    Name Description
    T

    FindChild(Transform, String)

    Declaration
    public static Transform FindChild(Transform parent, string name)
    Parameters
    Type Name Description
    UnityEngine.Transform parent
    System.String name
    Returns
    Type Description
    UnityEngine.Transform

    FindOrAdd<T>(List<T>, T)

    Declaration
    public static int FindOrAdd<T>(List<T> list, T item)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> list
    T item
    Returns
    Type Description
    System.Int32
    Type Parameters
    Name Description
    T

    FindOrAddComponent<T>(GameObject)

    Declaration
    public static T FindOrAddComponent<T>(GameObject gameObject)
        where T : Component
    Parameters
    Type Name Description
    UnityEngine.GameObject gameObject
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    FixupNewlines(String)

    Declaration
    public static string FixupNewlines(string text)
    Parameters
    Type Name Description
    System.String text
    Returns
    Type Description
    System.String

    FloatToDecimal(Single, Int32)

    Declaration
    public static decimal FloatToDecimal(float value, int decimalPlaces = 2)
    Parameters
    Type Name Description
    System.Single value
    System.Int32 decimalPlaces
    Returns
    Type Description
    System.Decimal

    ForEach<T>(IEnumerable<T>, Action<T>)

    Declaration
    public static void ForEach<T>(this IEnumerable<T> source, Action<T> action)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source
    System.Action<T> action
    Type Parameters
    Name Description
    T

    GetCommandLineArgValue(String, Int32)

    Declaration
    public static int GetCommandLineArgValue(string argumentName, int nDefaultValue)
    Parameters
    Type Name Description
    System.String argumentName
    System.Int32 nDefaultValue
    Returns
    Type Description
    System.Int32

    GetCommandLineArgValue(String, Single)

    Declaration
    public static float GetCommandLineArgValue(string argumentName, float flDefaultValue)
    Parameters
    Type Name Description
    System.String argumentName
    System.Single flDefaultValue
    Returns
    Type Description
    System.Single

    HasCommandLineArgument(String)

    Declaration
    public static bool HasCommandLineArgument(string argumentName)
    Parameters
    Type Name Description
    System.String argumentName
    Returns
    Type Description
    System.Boolean

    IgnoreCollisions(GameObject, GameObject)

    Declaration
    public static void IgnoreCollisions(GameObject goA, GameObject goB)
    Parameters
    Type Name Description
    UnityEngine.GameObject goA
    UnityEngine.GameObject goB

    IsNullOrEmpty<T>(T[])

    Declaration
    public static bool IsNullOrEmpty<T>(T[] array)
    Parameters
    Type Name Description
    T[] array
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    IsValidIndex<T>(T[], Int32)

    Declaration
    public static bool IsValidIndex<T>(T[] array, int i)
    Parameters
    Type Name Description
    T[] array
    System.Int32 i
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    IsValidIndex<T>(List<T>, Int32)

    Declaration
    public static bool IsValidIndex<T>(List<T> list, int i)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> list
    System.Int32 i
    Returns
    Type Description
    System.Boolean
    Type Parameters
    Name Description
    T

    Median<T>(IEnumerable<T>)

    Declaration
    public static T Median<T>(this IEnumerable<T> source)
    Parameters
    Type Name Description
    System.Collections.Generic.IEnumerable<T> source
    Returns
    Type Description
    T
    Type Parameters
    Name Description
    T

    Normalize(Single, Single, Single)

    Declaration
    public static float Normalize(float value, float min, float max)
    Parameters
    Type Name Description
    System.Single value
    System.Single min
    System.Single max
    Returns
    Type Description
    System.Single

    PathLength(NavMeshPath)

    Declaration
    public static float PathLength(NavMeshPath path)
    Parameters
    Type Name Description
    UnityEngine.NavMeshPath path
    Returns
    Type Description
    System.Single

    Quit()

    Declaration
    public static void Quit()

    RandomWithLookback(Int32, Int32, List<Int32>, Int32)

    Declaration
    public static int RandomWithLookback(int min, int max, List<int> history, int historyCount)
    Parameters
    Type Name Description
    System.Int32 min
    System.Int32 max
    System.Collections.Generic.List<System.Int32> history
    System.Int32 historyCount
    Returns
    Type Description
    System.Int32

    RemapNumber(Single, Single, Single, Single, Single)

    Declaration
    public static float RemapNumber(float num, float low1, float high1, float low2, float high2)
    Parameters
    Type Name Description
    System.Single num
    System.Single low1
    System.Single high1
    System.Single low2
    System.Single high2
    Returns
    Type Description
    System.Single

    RemapNumberClamped(Single, Single, Single, Single, Single)

    Declaration
    public static float RemapNumberClamped(float num, float low1, float high1, float low2, float high2)
    Parameters
    Type Name Description
    System.Single num
    System.Single low1
    System.Single high1
    System.Single low2
    System.Single high2
    Returns
    Type Description
    System.Single

    ReplaceGameObject<T, U>(T, U)

    Declaration
    public static void ReplaceGameObject<T, U>(T replace, U replaceWith)
        where T : MonoBehaviour where U : MonoBehaviour
    Parameters
    Type Name Description
    T replace
    U replaceWith
    Type Parameters
    Name Description
    T
    U

    ResetTransform(Transform, Boolean)

    Declaration
    public static void ResetTransform(Transform t, bool resetScale = true)
    Parameters
    Type Name Description
    UnityEngine.Transform t
    System.Boolean resetScale

    SendPhysicsMessage(Collider, String, Object, SendMessageOptions)

    Declaration
    public static void SendPhysicsMessage(Collider collider, string message, object arg, SendMessageOptions sendMessageOptions)
    Parameters
    Type Name Description
    UnityEngine.Collider collider
    System.String message
    System.Object arg
    UnityEngine.SendMessageOptions sendMessageOptions

    SendPhysicsMessage(Collider, String, SendMessageOptions)

    Declaration
    public static void SendPhysicsMessage(Collider collider, string message, SendMessageOptions sendMessageOptions)
    Parameters
    Type Name Description
    UnityEngine.Collider collider
    System.String message
    UnityEngine.SendMessageOptions sendMessageOptions

    SetActive(GameObject, Boolean)

    Declaration
    public static void SetActive(GameObject gameObject, bool active)
    Parameters
    Type Name Description
    UnityEngine.GameObject gameObject
    System.Boolean active

    Shuffle<T>(T[])

    Declaration
    public static void Shuffle<T>(T[] array)
    Parameters
    Type Name Description
    T[] array
    Type Parameters
    Name Description
    T

    Shuffle<T>(List<T>)

    Declaration
    public static void Shuffle<T>(List<T> list)
    Parameters
    Type Name Description
    System.Collections.Generic.List<T> list
    Type Parameters
    Name Description
    T

    Swap<T>(ref T, ref T)

    Declaration
    public static void Swap<T>(ref T lhs, ref T rhs)
    Parameters
    Type Name Description
    T lhs
    T rhs
    Type Parameters
    Name Description
    T

    SwitchLayerRecursively(Transform, Int32, Int32)

    Declaration
    public static void SwitchLayerRecursively(Transform transform, int fromLayer, int toLayer)
    Parameters
    Type Name Description
    UnityEngine.Transform transform
    System.Int32 fromLayer
    System.Int32 toLayer

    Vector2AsVector3(Vector2)

    Declaration
    public static Vector3 Vector2AsVector3(Vector2 v)
    Parameters
    Type Name Description
    UnityEngine.Vector2 v
    Returns
    Type Description
    UnityEngine.Vector3

    Vector2FromString(String)

    Declaration
    public static Vector2 Vector2FromString(string szString)
    Parameters
    Type Name Description
    System.String szString
    Returns
    Type Description
    UnityEngine.Vector2

    Vector3AsVector2(Vector3)

    Declaration
    public static Vector2 Vector3AsVector2(Vector3 v)
    Parameters
    Type Name Description
    UnityEngine.Vector3 v
    Returns
    Type Description
    UnityEngine.Vector2

    Vector3FromString(String)

    Declaration
    public static Vector3 Vector3FromString(string szString)
    Parameters
    Type Name Description
    System.String szString
    Returns
    Type Description
    UnityEngine.Vector3

    WrapCoroutine(IEnumerator, Action)

    Declaration
    public static IEnumerator WrapCoroutine(IEnumerator coroutine, Action onCoroutineFinished)
    Parameters
    Type Name Description
    System.Collections.IEnumerator coroutine
    System.Action onCoroutineFinished
    Returns
    Type Description
    System.Collections.IEnumerator

    YawOf(Vector3)

    Declaration
    public static float YawOf(Vector3 v)
    Parameters
    Type Name Description
    UnityEngine.Vector3 v
    Returns
    Type Description
    System.Single
    In This Article
    • Fields
      • CentimetersToFeet
      • CentimetersToInches
      • FeetToCentimeters
      • FeetToMeters
      • InchesToCentimeters
      • InchesToMeters
      • KilometersToMiles
      • MetersToFeet
      • MetersToInches
      • MilesToKilometers
    • Methods
      • AfterTimer(GameObject, Single, Action, Boolean)
      • AngleOf(Vector2)
      • Approach(Single, Single, Single)
      • BezierInterpolate3(Vector3, Vector3, Vector3, Single)
      • BezierInterpolate4(Vector3, Vector3, Vector3, Vector3, Single)
      • ClosestPointOnLine(Vector3, Vector3, Vector3)
      • ColorWithAlpha(Color, Single)
      • CombinePaths(String[])
      • DrawCross(Vector3, Color, Single)
      • FastRemove<T>(List<T>, Int32)
      • FindAndRemove<T>(List<T>, Predicate<T>)
      • FindChild(Transform, String)
      • FindOrAdd<T>(List<T>, T)
      • FindOrAddComponent<T>(GameObject)
      • FixupNewlines(String)
      • FloatToDecimal(Single, Int32)
      • ForEach<T>(IEnumerable<T>, Action<T>)
      • GetCommandLineArgValue(String, Int32)
      • GetCommandLineArgValue(String, Single)
      • HasCommandLineArgument(String)
      • IgnoreCollisions(GameObject, GameObject)
      • IsNullOrEmpty<T>(T[])
      • IsValidIndex<T>(T[], Int32)
      • IsValidIndex<T>(List<T>, Int32)
      • Median<T>(IEnumerable<T>)
      • Normalize(Single, Single, Single)
      • PathLength(NavMeshPath)
      • Quit()
      • RandomWithLookback(Int32, Int32, List<Int32>, Int32)
      • RemapNumber(Single, Single, Single, Single, Single)
      • RemapNumberClamped(Single, Single, Single, Single, Single)
      • ReplaceGameObject<T, U>(T, U)
      • ResetTransform(Transform, Boolean)
      • SendPhysicsMessage(Collider, String, Object, SendMessageOptions)
      • SendPhysicsMessage(Collider, String, SendMessageOptions)
      • SetActive(GameObject, Boolean)
      • Shuffle<T>(T[])
      • Shuffle<T>(List<T>)
      • Swap<T>(ref T, ref T)
      • SwitchLayerRecursively(Transform, Int32, Int32)
      • Vector2AsVector3(Vector2)
      • Vector2FromString(String)
      • Vector3AsVector2(Vector3)
      • Vector3FromString(String)
      • WrapCoroutine(IEnumerator, Action)
      • YawOf(Vector3)
    Back to top Copyright (c) Valve Corporation, All rights reserved.