Version: 2021.3
LanguageEnglish
  • C#

HierarchyFrameDataView.GetItemMergedSamplesColumnDataAsFloats

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Submission failed

For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Declaration

public void GetItemMergedSamplesColumnDataAsFloats(int id, int column, List<float> outValues);

Parameters

id Hierarchy item identifier.
column Column identifier.
outValues The merged samples for the specified hierarchy item, returned as a list of floats. This list is resized if necessary.

Description

Retrieves the merged samples for a specific hierarchy item. Merged samples are returned as a list of floats through the outValues param.

When HierarchyFrameDataView uses ViewMode.MergeSamplesWithTheSameName mode, samples with the same name, and at the same hierarchy level, are merged and represented by a single item. In this case, GetItemColumnData represents an aggregated value.
Use GetItemMergedSamplesColumnDataAsFloats to obtain float values for individual samples in a merged hierarchy.
The resulting list of floats is written to outValues. This list is resized if necessary.

Additional resources: GetItemColumnData, GetItemMergedSamplesCount, GetItemMergedSamplesColumnData.