SerializedStringTable.Contains C# (CSharp) Method

Contains() public method

public Contains ( string key ) : bool
key string
return bool
    public bool Contains(string key)
    {
        this.SanityCheck();
        return this.table.Contains(key);
    }

Usage Example

        public AnimationSelection(GameObject[] animatedOptions, SerializedStringTable chosenAnimated, SerializedStringTable chosenClip, AnimationWindow editor)
        {
            this.m_AnimationWindow = editor;
            this.m_AnimatedOptions = animatedOptions;
            string stringArrayHashCode = AnimationSelection.GetStringArrayHashCode(this.GetAnimatedObjectNames());

            if (!chosenAnimated.Contains(stringArrayHashCode))
            {
                chosenAnimated.Set(stringArrayHashCode, animatedOptions.Length - 1);
            }
            this.m_AnimatedObjectIndex = chosenAnimated.Get(stringArrayHashCode);
            this.RefreshChosenClip(chosenClip);
        }
All Usage Examples Of SerializedStringTable::Contains