UnityEditorInternal.AnimationWindowKeyframe.GetHash C# (CSharp) Method

GetHash() public method

public GetHash ( ) : int
return int
        public int GetHash()
        {
            if (this.m_Hash == 0)
            {
                this.m_Hash = this.curve.GetHashCode();
                this.m_Hash = (0x21 * this.m_Hash) + this.time.GetHashCode();
            }
            return this.m_Hash;
        }

Usage Example

        public void UnselectKey(AnimationWindowKeyframe keyframe)
        {
            int hash = keyframe.GetHash();

            if (this.selectedKeyHashes.Contains(hash))
            {
                this.selectedKeyHashes.Remove(hash);
            }
            this.m_SelectedKeysCache = null;
        }
All Usage Examples Of UnityEditorInternal.AnimationWindowKeyframe::GetHash