Пример #1
0
        public void SendApplyEvent(int spriteCount, int[] spriteBoneCount, BoneCache[] bones)
        {
            int[] chainBoneCount = null;
            int[] maxDepth       = null;
            int[] boneCount      = null;
            int   boneRootCount  = 0;

            GetChainBoneStatistic(bones, out chainBoneCount, out maxDepth, out boneRootCount, out boneCount);
            var applyEvent = new AnimationToolApplyEvent()
            {
                instance_id       = m_InstanceId,
                character_mode    = m_Model.hasCharacter,
                sprite_count      = spriteCount,
                bone_sprite_count = spriteBoneCount,
                bone_depth        = maxDepth,
                bone_chain_count  = chainBoneCount,
                bone_root_count   = boneRootCount,
                bone_count        = boneCount
            };

            m_AnalyticsStorage.SendApplyEvent(applyEvent);
        }
Пример #2
0
 public AnalyticsResult SendApplyEvent(AnimationToolApplyEvent evt)
 {
     return(EditorAnalytics.SendEventWithLimit("u2dAnimationToolApply", evt, k_Version));
 }
Пример #3
0
 public AnalyticsResult SendApplyEvent(AnimationToolApplyEvent evt)
 {
     m_TotalEvents.applyEvent = evt;
     return(AnalyticsResult.Ok);
 }