Skip to main content

Namespace mobisim.Utility

Namespaces​

Classes​

Provides methods for reading and parsing CSV files into dictionaries with typed values.

Provides helper methods for parsing command line arguments, such as retrieving the subject ID.

Attribute used to define a visible range for an AnimationCurve field in the Unity Inspector, including optional display color.

Attribute used to disable a field in the Unity Inspector based on one or more conditional boolean properties.

Smoothly snaps a transform (e.g., an IK effector) toward a target transform, blending between its initial local pose and the target pose over time.

Attribute used to conditionally enable a property in the Unity Inspector. Supports single or multiple boolean condition fields using AND/OR logic.

Use this property on a ScriptableObject type to allow the editors drawing the field to draw an expandable area that allows for changing the values on the object without having to change editor.

Attribute to display a help box in the Unity Inspector.

Attribute to display an integer or long property in the Unity Inspector as a hexadecimal string.

Custom property drawer that renders HexIntAttribute int fields in the Unity Inspector as hexadecimal strings.

Attribute used to conditionally hide a property in the Unity Inspector. Inverse of ShowIfAttribute.

Json helper class providing utility methods for serializing and deserializing generic objects to and from JSON, using Unity's JsonUtility. This helper wraps objects to enable serialization of generics, since Unity's built-in JSON utility does not directly support top-level generic serialization.

Attribute for displaying a Min-Max slider in the Unity Inspector for Vector2 or Vector2Int fields.

A component that generates a random float number within a defined range and optionally invokes a UnityEvent with the generated value.

Attribute that can be applied to AnimationCurve fields to round all keyframe values to the nearest integer. Optionally enforces constant tangents for smoother stepped transitions.

Custom property drawer for RoundedValueCurveAttribute.

A generic serializable dictionary implementation compatible with Unity's serialization system. Stores key-value pairs in a serializable list, and synchronizes with the base dictionary during serialization and deserialization.

Custom property drawer for SerializableDictionary. Displays the underlying serialized key-value list using a standard PropertyField.

Displays a preview image of the referenced asset in the Inspector.

Attribute that conditionally shows a field in the Unity Inspector based on one or more boolean condition fields.

Defines frequency and damping values for spring motion, and manages value updates based on a target.

A utility class that provides helper methods and configuration types for simulating damped spring motion.

Centralised math helpers that would otherwise be duplicated across vehicle controllers, path-following systems, feedback calculators, and UI layers.

Cached set of motion parameters that can be used to efficiently update multiple springs using the same time step, angular frequency and damping ratio.

Structs​

Represents an optional value of type T with an enable flag, allowing you to control whether the value should be considered active.

A serializable key-value pair structure compatible with Unity's serialization system.

Enums​

Logical operators used to evaluate multiple conditions.