コード例 #1
0
 static void Create2DRendererData()
 {
     Renderer2DData.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 = GetNumberOfUsedBlendingLayers(m_Renderer2DData);
         modifiedData.blending_modes_used   = GetBlendingModesUsed(m_Renderer2DData);
         analytics.SendData(Analytics.AnalyticsDataTypes.k_Renderer2DDataString, modifiedData);
     }
 }