Ejemplo n.º 1
0
        public void SetUniqueName()
        {
            if (m_InputControlSchemeName == m_OriginalName)
            {
                return;
            }
            m_AssetManager.serializedObject.Update();
            var controlSchemeArrayProperty = m_AssetManager.serializedObject.FindProperty("m_ControlSchemes");

            m_InputControlSchemeName = InputActionSerializationHelpers.FindUniqueName(controlSchemeArrayProperty, m_InputControlSchemeName);
        }