예제 #1
0
 static void Create2DRendererData()
 {
     Renderer2DMenus.Create2DRendererData((instance) =>
     {
         Analytics.RendererAssetData modifiedData = new Analytics.RendererAssetData();
         modifiedData.instance_id           = instance.GetInstanceID();
         modifiedData.was_create_event      = true;
         modifiedData.blending_layers_count = 1;
         modifiedData.blending_modes_used   = 2;
         Analytics.Renderer2DAnalytics.instance.SendData(Analytics.AnalyticsDataTypes.k_Renderer2DDataString, modifiedData);
     });
 }
예제 #2
0
 void SendModifiedAnalytics(Analytics.IAnalytics analytics)
 {
     if (m_WasModified)
     {
         Analytics.RendererAssetData modifiedData = new Analytics.RendererAssetData();
         modifiedData.instance_id           = m_Renderer2DData.GetInstanceID();
         modifiedData.was_create_event      = false;
         modifiedData.blending_layers_count = 0;
         modifiedData.blending_modes_used   = 0;
         analytics.SendData(Analytics.AnalyticsDataTypes.k_Renderer2DDataString, modifiedData);
     }
 }