UnityEditor.AudioMixerExposedParameterView.NameChanged C# (CSharp) Method

NameChanged() public method

public NameChanged ( int index, string newName ) : void
index int
newName string
return void
        public void NameChanged(int index, string newName)
        {
            if (newName.Length > 0x40)
            {
                newName = newName.Substring(0, 0x40);
                Debug.LogWarning(string.Concat(new object[] { "Maximum name length of an exposed parameter is ", 0x40, " characters. Name truncated to '", newName, "'" }));
            }
            ExposedAudioParameter[] exposedParameters = this.m_Controller.exposedParameters;
            exposedParameters[index].name = newName;
            this.m_Controller.exposedParameters = exposedParameters;
        }