docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class SensorUtils

    Provides some useful ad hoc functions.

    Inheritance
    object
    SensorUtils
    Inherited Members
    object.ToString()
    object.Equals(object)
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    Namespace: Mechatronics.SensorSDK
    Assembly: solution.dll
    Syntax
    public static class SensorUtils

    Methods

    Name Description
    ChangeHDCameraExposure(Camera, float)

    Sets the exposure time of the given camera.

    ChangeHDCameraGain(Camera, float)

    Sets the gain of the given camera.

    ComputePixelFocalLength(float, int)

    Determines the equivalent focal length, in pixels, for a given field of view angle and image size.

    CreateOrKeepBiggerComputeBuffer<T>(ref ComputeBuffer, int, string)

    If the buffer does not have a size big enough to contain the count requested or is not currently allocated, release and allocate a new one.

    CreateOrResizeComputeBuffer<T>(ref ComputeBuffer, int, string)

    If the buffer does not have the exact count requested or is not currently allocated, release and allocate a new one.

    CreateOrResizeRenderTexture(ref RenderTexture, int, int, int, bool, RenderTextureFormat, RenderTextureReadWrite, string)

    Creates a new texture if the given texture is null or the wrong size.

    GetHDCameraData(Camera)

    Retrieves the HDAdditionalCameraData component of the given camera, or adds it othewise.

    IsFrameCompleted(HDCamera)

    Returns if a multiframe capture is completed.

    ObjectIdVector(uint)

    Pack an id in a vector4.

    TryAddTriggerBoxCollider(GameObject, float)

    If no collider is on the game object, add a box collider of given size, in Trigger mode

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)