SerializedStringTable.Set C# (CSharp) Method

Set() public method

public Set ( string key ) : void
key string
return void
    public void Set(string key)
    {
        this.Set(key, 0);
    }

Same methods

SerializedStringTable::Set ( string key, int value ) : void

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::Set