Class AnalyticsUtils
Set of utilities for analytics
Inherited Members
Namespace: UnityEditor.Rendering
Assembly: Unity.RenderPipelines.Core.Editor.dll
Syntax
public static class AnalyticsUtils
  Methods
GetSerializableFields(Type, bool)
Gets a list of the serializable fields of the given type
Declaration
public static IEnumerable<FieldInfo> GetSerializableFields(this Type type, bool removeObsolete = false)
  Parameters
| Type | Name | Description | 
|---|---|---|
| Type | type | The type to get fields that are serialized.  | 
      
| bool | removeObsolete | If obsolete fields are taken into account  | 
      
Returns
| Type | Description | 
|---|---|
| IEnumerable<FieldInfo> | The collection of FieldInfo that are serialized for this type  | 
      
ToNestedColumnWithDefault<T>(T, T, bool)
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  | 
      
| bool | compareAndSimplifyWithDefault | If a comparison against the default value must be done.  | 
      
Returns
| Type | Description | 
|---|---|
| string[] | The nested columns in form of  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The given type  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Throws an exception if the current parameter is null.  | 
      
ToNestedColumn<T>(T, bool)
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.  | 
      
| bool | compareAndSimplifyWithDefault | If a comparison against the default value must be done.  | 
      
Returns
| Type | Description | 
|---|---|
| string[] | The nested columns in form of  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The given type  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Throws an exception if current parameter is null.  | 
      
ToNestedColumn<T>(T, T)
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, T defaultInstance)
  Parameters
| Type | Name | Description | 
|---|---|---|
| T | current | The current object to obtain the fields and values.  | 
      
| T | defaultInstance | The default instance to compare values  | 
      
Returns
| Type | Description | 
|---|---|
| string[] | The nested columns in form of  | 
      
Type Parameters
| Name | Description | 
|---|---|
| T | The given type  | 
      
Exceptions
| Type | Condition | 
|---|---|
| ArgumentNullException | Throws an exception if the current or defaultInstance parameters are null.  |