Skip to main content

Class BoundBoxDataLoggable

Component that logs bounding box data of the object for data collection purposes. Can use either a referenced BoundBox component, mesh bounds, or collider bounds as the source. Supports debug visualization of the bounding box in the editor. Implements IDataLoggable to provide bounds data logs to data collector.

[DisallowMultipleComponent]
public class BoundBoxDataLoggable : MonoBehaviour, IDataLoggable

Inheritance​

Implements​

IDataLoggable

Methods​

AccurateBounds()​

Calculates the accurate bounds based on the selected source. The calculated bounds is in the object's local space.

public Bounds AccurateBounds()

Returns​

Bounds — A Bounds object representing the accurate bounds.

Collect()​

Collects the data to be logged, part of the IDataLoggable

public DataLog Collect()

Returns​

DataLog — A DataLog object containing the bound data.