From e1a5d58f1ca0f856e8cdc6e47269051fe2cba6e9 Mon Sep 17 00:00:00 2001 From: mopsicus Date: Thu, 15 Nov 2018 15:42:40 +0300 Subject: [PATCH] * Fix OnReturnPressedEvent inspector view --- .../Scripts/UnityMobileInput/Editor/MobileInputEditor.cs | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Unity/Assets/Scripts/UnityMobileInput/Editor/MobileInputEditor.cs b/Unity/Assets/Scripts/UnityMobileInput/Editor/MobileInputEditor.cs index cec3aec..94c87aa 100644 --- a/Unity/Assets/Scripts/UnityMobileInput/Editor/MobileInputEditor.cs +++ b/Unity/Assets/Scripts/UnityMobileInput/Editor/MobileInputEditor.cs @@ -36,9 +36,9 @@ public class MobileInputEditor : Editor { private SerializedObject _object; /// - /// Return key type + /// Return press event /// - private SerializedProperty _returnKey; + private SerializedProperty _onReturnPressedEvent; #if UNITY_IOS /// @@ -58,7 +58,7 @@ public class MobileInputEditor : Editor { private void OnEnable () { _target = (MobileInputField) target; _object = new SerializedObject (target); - _returnKey = _object.FindProperty ("ReturnKey"); + _onReturnPressedEvent = _object.FindProperty ("OnReturnPressedEvent"); #if UNITY_IOS _isWithDoneButton = _object.FindProperty ("IsWithDoneButton"); _isWithClearButton = _object.FindProperty ("IsWithClearButton"); @@ -82,6 +82,7 @@ public override void OnInspectorGUI () { _target.IsWithClearButton = GUILayout.Toggle (_target.IsWithClearButton, " Show \"Clear\" button"); GUILayout.Space (OFFSET); #endif + EditorGUILayout.PropertyField (_onReturnPressedEvent); if (EditorGUI.EndChangeCheck ()) { _object.ApplyModifiedProperties (); }