Class AnalyticsUtils
Set of utilities for analytics
Inherited Members
Namespace: UnityEditor.Rendering
Syntax
public static class AnalyticsUtils
Methods
ToNestedColumn<T>(T, Boolean)
Obtains the Serialized fields and values in form of nested columns for BigQuery https://cloud.google.com/bigquery/docs/nested-repeated
Declaration
public static string[] ToNestedColumn<T>(this T current, bool compareAndSimplifyWithDefault = false)
where T : new()
Parameters
| Type | Name | Description |
|---|---|---|
| T | current | The current object to obtain the fields and values. |
| Boolean | compareAndSimplifyWithDefault | If a comparison against the default value must be done. |
Returns
| Type | Description |
|---|---|
| String[] | The nested columns in form of {key.nestedKey : value} |
Type Parameters
| Name | Description |
|---|---|
| T | The given type |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |
ToNestedColumnWithDefault<T>(T, T, Boolean)
Obtains the Serialized fields and values in form of nested columns for BigQuery https://cloud.google.com/bigquery/docs/nested-repeated
Declaration
public static string[] ToNestedColumnWithDefault<T>(this T current, T defaultObject, bool compareAndSimplifyWithDefault = false)
Parameters
| Type | Name | Description |
|---|---|---|
| T | current | The current object to obtain the fields and values. |
| T | defaultObject | The default object |
| Boolean | compareAndSimplifyWithDefault | If a comparison against the default value must be done. |
Returns
| Type | Description |
|---|---|
| String[] | The nested columns in form of {key.nestedKey : value} |
Type Parameters
| Name | Description |
|---|---|
| T | The given type |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException |